/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | Types.hpp | 83 struct alignas(sizeof(T) * bit_ceil(N)) vec 85 vec() = default; 87 constexpr explicit vec(T replicate) in vec() function 96 constexpr vec(T arg0, ARGS... args) in vec() function 102 vec &operator=(T) = delete; 118 struct alignas(sizeof(T) * 4) vec<T, 4> 120 vec() = default; 122 constexpr explicit vec(T replicate) in vec() function 130 constexpr vec(T x, T y, T z, T w) in vec() function 139 vec 166 operator ==(const vec<T, N> &a, const vec<T, N> &b) operator ==() argument 180 operator !=(const vec<T, N> &a, const vec<T, N> &b) operator !=() argument [all...] |
/third_party/openssl/crypto/ |
H A D | sparcv9cap.c | 76 extern unsigned int getisax(unsigned int vec[], unsigned int sz) __attribute__ ((weak)); 79 extern unsigned int getisax(unsigned int vec[], unsigned int sz); 81 static unsigned int (*getisax) (unsigned int vec[], unsigned int sz) = NULL; 105 unsigned int vec[2] = { 0, 0 }; in OPENSSL_cpuid_setup() local 107 if (getisax (vec,2)) { in OPENSSL_cpuid_setup() 108 if (vec[0]&0x00020) OPENSSL_sparcv9cap_P[0] |= SPARCV9_VIS1; in OPENSSL_cpuid_setup() 109 if (vec[0]&0x00040) OPENSSL_sparcv9cap_P[0] |= SPARCV9_VIS2; in OPENSSL_cpuid_setup() 110 if (vec[0]&0x00080) OPENSSL_sparcv9cap_P[0] |= SPARCV9_BLK; in OPENSSL_cpuid_setup() 111 if (vec[0]&0x00100) OPENSSL_sparcv9cap_P[0] |= SPARCV9_FMADD; in OPENSSL_cpuid_setup() 112 if (vec[ in OPENSSL_cpuid_setup() [all...] |
/third_party/rust/crates/codespan/codespan-reporting/tests/ |
H A D | term.rs | 93 let diagnostics = vec![ 127 let mut v = vec![Some("foo"), Some("bar")]; in main() 133 let diagnostics = vec![ 137 .with_labels(vec![ 147 .with_notes(vec![ 241 let diagnostics = vec![ 245 .with_labels(vec![ 254 .with_labels(vec![ 263 .with_labels(vec![ 274 .with_labels(vec![ [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_move_vec_src_uses_to_dest.c | 73 nir_alu_instr *vec = nir_instr_as_alu(instr); in move_vec_src_uses_to_dest_block() local 75 switch (vec->op) { in move_vec_src_uses_to_dest_block() 84 /* Can't handle non-SSA vec operations */ in move_vec_src_uses_to_dest_block() 85 if (!vec->dest.dest.is_ssa) in move_vec_src_uses_to_dest_block() 89 if (vec->dest.saturate) in move_vec_src_uses_to_dest_block() 96 for (unsigned i = 0; i < nir_op_infos[vec->op].num_inputs; i++) { in move_vec_src_uses_to_dest_block() 98 if (!vec->src[i].src.is_ssa) in move_vec_src_uses_to_dest_block() 102 if (vec->src[i].abs || vec->src[i].negate) in move_vec_src_uses_to_dest_block() 116 for (unsigned j = i; j < nir_op_infos[vec in move_vec_src_uses_to_dest_block() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_deshake.c | 294 t->vec.x = x - deshake->rx; in find_motion() 295 t->vec.y = y - deshake->ry; in find_motion() 304 t->vec.x += (cos(t->angle)-1)*p_x - sin(t->angle)*p_y; in find_motion() 305 t->vec.y += sin(t->angle)*p_x + (cos(t->angle)-1)*p_y; in find_motion() 308 t->vec.x = av_clipf(t->vec.x, -deshake->rx * 2, deshake->rx * 2); in find_motion() 309 t->vec.y = av_clipf(t->vec.y, -deshake->ry * 2, deshake->ry * 2); in find_motion() 386 deshake->last.vec.x = 0; in config_props() 387 deshake->last.vec in config_props() [all...] |
/third_party/rust/crates/clap/tests/builder/ |
H A D | conflicts.rs | 11 .try_get_matches_from(vec!["myprog", "-f", "-o"]); in flag_conflict() 22 .try_get_matches_from(vec!["myprog", "-o", "-f"]); in flag_conflict_2() 33 .try_get_matches_from(vec!["myprog", "-o", "-f"]); in flag_conflict_with_all() 44 let result = cmd.clone().try_get_matches_from(vec!["myprog", "-f"]); in exclusive_flag() 47 let result = cmd.clone().try_get_matches_from(vec!["myprog", "-o", "-f"]); in exclusive_flag() 58 .try_get_matches_from(vec!["myprog", "-o=val1", "-f=val2"]); in exclusive_option() 73 .try_get_matches_from(vec!["myprog", "-f=val2"]); in not_exclusive_with_defaults() 87 let result = cmd.try_get_matches_from(vec!["test", "--foo"]); in not_exclusive_with_group() 100 .try_get_matches_from(vec!["myprog"]); in default_doesnt_activate_exclusive() 112 let result = cmd.try_get_matches_from_mut(vec!["mypro in arg_conflicts_with_group() [all...] |
H A D | flag_subcommands.rs | 17 .try_get_matches_from(vec!["myprog", "some", "--test"]) in flag_subcommand_normal() 42 .try_get_matches_from(vec!["myprog", "result", "--test"]) in flag_subcommand_normal_with_alias() 63 .try_get_matches_from(vec!["myprog", "-S", "--test"]) in flag_subcommand_short() 84 .try_get_matches_from(vec!["myprog", "-St"]) in flag_subcommand_short_with_args() 109 .try_get_matches_from(vec!["myprog", "-Bt"]) in flag_subcommand_short_with_alias() 122 .try_get_matches_from(vec!["myprog", "-S"]) in flag_subcommand_short_with_alias_same_as_short_flag() 135 .try_get_matches_from(vec!["myprog", "--sync"]) in flag_subcommand_long_with_alias_same_as_long_flag() 155 let matches1 = app1.try_get_matches_from(vec!["test", "-M"]).unwrap(); in flag_subcommand_short_with_aliases_vis_and_hidden() 159 let matches2 = app2.try_get_matches_from(vec!["test", "-C"]).unwrap(); in flag_subcommand_short_with_aliases_vis_and_hidden() 163 let matches3 = app3.try_get_matches_from(vec!["tes in flag_subcommand_short_with_aliases_vis_and_hidden() [all...] |
H A D | multiple_values.rs | 14 .try_get_matches_from(vec![ in option_long() 42 .try_get_matches_from(vec!["", "-o", "val1", "-o", "val2", "-o", "val3"]); in option_short() 69 .try_get_matches_from(vec![ in option_mixed() 96 .try_get_matches_from(vec![ in option_exact_exact() 122 .try_get_matches_from(vec!["", "-o", "val1", "val2", "val3"]); in option_exact_exact_not_mult() 147 .try_get_matches_from(vec![ in option_exact_exact_mult() 174 .try_get_matches_from(vec!["", "-o", "val1", "-o", "val2"]); in option_exact_less() 190 .try_get_matches_from(vec![ in option_exact_more() 208 .try_get_matches_from(vec!["", "-o", "val1", "val2", "val3"]); in option_min_exact() 233 .try_get_matches_from(vec!["", " in option_min_less() [all...] |
H A D | default_vals.rs | 16 .try_get_matches_from(vec![""]); in opts() 34 .try_get_matches_from(vec![""]); in default_has_index() 49 .try_get_matches_from(vec!["", "-o"]); in opt_without_value_fail() 62 .try_get_matches_from(vec!["", "--opt", "value"]); in opt_user_override() 80 .try_get_matches_from(vec![""]); in positionals() 98 .try_get_matches_from(vec!["", "value"]); in positional_user_override() 121 .try_get_matches_from(vec![""]); in osstr_opts() 138 .try_get_matches_from(vec!["", "--opt", "value"]); in osstr_opt_user_override() 155 .try_get_matches_from(vec![""]); in osstr_positionals() 172 .try_get_matches_from(vec!["", "valu in osstr_positional_user_override() [all...] |
H A D | require.rs | 12 .try_get_matches_from(vec!["", "-f"]); in flag_required() 27 .try_get_matches_from(vec!["", "-f", "-c"]) in flag_required_2() 38 .try_get_matches_from(vec!["", "-f", "val"]); in option_required() 49 .try_get_matches_from(vec!["", "-f", "val", "-c", "other_val"]) in option_required_2() 64 .try_get_matches_from(vec![""]); in positional_required() 74 .try_get_matches_from(vec!["", "someval"]) in positional_required_2() 153 .try_get_matches_from(vec!["", "-f"]); in group_required() 166 .try_get_matches_from(vec!["", "-f", "--some"]) in group_required_2() 180 .try_get_matches_from(vec!["", "-f", "--other"]) in group_required_3() 194 .try_get_matches_from(vec!["", " in arg_require_group() [all...] |
H A D | app_settings.rs | 34 .try_get_matches_from(vec!["myprog", "sub1"]) in sub_command_negate_required() 44 .try_get_matches_from(vec![""]); in sub_command_negate_required_2() 55 .try_get_matches_from(vec![""]); in sub_command_required() 84 .try_get_matches_from(vec![""]); in arg_required_else_help() 99 .try_get_matches_from(vec![""]); in arg_required_else_help_over_req_arg() 115 .try_get_matches_from(vec![""]); in arg_required_else_help_over_req_subcommand() 130 .try_get_matches_from(vec![""]); in arg_required_else_help_with_default() 176 .try_get_matches_from(vec!["prog", "te"]); in infer_subcommands_fail_no_args() 188 .try_get_matches_from(vec!["prog", "te"]); in infer_subcommands_fail_no_args() 200 .try_get_matches_from(vec!["pro in infer_subcommands_fail_with_args() [all...] |
/third_party/rust/crates/aho-corasick/bench/src/ |
H A D | same.rs | 11 define_same(c, "onebyte/match", 10_000, vec!["z"]); in all() 12 define_same(c, "onebyte/nomatch", 0, vec!["a"]); in all() 14 define_same(c, "twobytes/match", 10_000, vec!["z", "a"]); in all() 15 define_same(c, "twobytes/nomatch", 0, vec!["a", "b"]); in all() 17 define_same(c, "threebytes/match", 10_000, vec!["z", "a", "b"]); in all() 18 define_same(c, "threebytes/nomatch", 0, vec!["a", "b", "c"]); in all() 20 define_same(c, "fourbytes/match", 10_000, vec!["z", "a", "b", "c"]); in all() 21 define_same(c, "fourbytes/nomatch", 0, vec!["a", "b", "c", "d"]); in all() 23 define_same(c, "fivebytes/match", 10_000, vec!["z", "a", "b", "c", "d"]); in all() 24 define_same(c, "fivebytes/nomatch", 0, vec![" in all() [all...] |
H A D | sherlock.rs | 12 define_sherlock(c, "name/alt1", 158, vec!["Sherlock", "Street"]); in all() 13 define_sherlock(c, "name/alt2", 558, vec!["Sherlock", "Holmes"]); in all() 18 vec![ in all() 22 define_sherlock(c, "name/alt4", 582, vec!["Sher", "Hol"]); in all() 23 define_sherlock(c, "name/alt5", 639, vec!["Sherlock", "Holmes", "Watson"]); in all() 28 vec!["SherlockZ", "HolmesZ", "WatsonZ", "IreneZ", "MoriartyZ"], in all() 30 define_sherlock(c, "name/alt7", 0, vec!["Шерлок Холмс", "Джон Уотсон"]); in all() 36 vec![ in all() 51 vec![ in all() 61 vec![ in all() [all...] |
H A D | random.rs | 23 define_random(c, "onebyte/match", 352, vec!["a"]); in memchr_optimizations() 24 define_random(c, "onebyte/nomatch", 0, vec!["\x00"]); in memchr_optimizations() 25 define_random(c, "twobytes/match", 352, vec!["a", "\x00"]); in memchr_optimizations() 26 define_random(c, "twobytes/nomatch", 0, vec!["\x00", "\x01"]); in memchr_optimizations() 27 define_random(c, "threebytes/match", 352, vec!["a", "\x00", "\x01"]); in memchr_optimizations() 28 define_random(c, "threebytes/nomatch", 0, vec!["\x00", "\x01", "\x02"]); in memchr_optimizations() 33 vec!["a", "\x00", "\x01", "\x02"], in memchr_optimizations() 39 vec!["\x00", "\x01", "\x02", "\x03"], in memchr_optimizations() 45 vec!["a", "\x00", "\x01", "\x02", "\x03"], in memchr_optimizations() 51 vec!["\x0 in memchr_optimizations() [all...] |
/third_party/rust/crates/clap/src/output/textwrap/ |
H A D | mod.rs | 44 assert_eq!(wrap("foo", 10), vec!["foo"]); in no_wrap() 49 assert_eq!(wrap("foo bar baz", 5), vec!["foo", "bar", "baz"]); in wrap_simple() 56 vec!["To be, or", "not to be,", "that is", "the", "question."] in to_be_or_not() 62 assert_eq!(wrap("foo bar baz", 10), vec!["foo bar", "baz"]); in multiple_words_on_first_line() 67 assert_eq!(wrap("foo", 0), vec!["foo"]); in long_word() 72 assert_eq!(wrap("foo bar", 0), vec!["foo", "bar"]); in long_words() 77 assert_eq!(wrap("foo bar", usize::MAX), vec!["foo bar"]); in max_width() 81 assert_eq!(wrap(text, usize::MAX), vec![text]); in max_width() 86 assert_eq!(wrap(" foo bar", 6), vec![" foo", "bar"]); in leading_whitespace() 95 assert_eq!(wrap(" foobar baz", 6), vec!["", "fooba in leading_whitespace_empty_first_line() [all...] |
/third_party/rust/crates/clap/tests/derive/ |
H A D | occurrences.rs | 14 points: vec![vec![1, 2], vec![0, 0]] in test_vec_of_vec() 29 arg: Vec<::std::vec::Vec<String>>, in test_vec_of_vec_opt_out() 34 arg: vec![vec!["1".into(), "2".into()], vec!["a".into(), "b".into()]], in test_vec_of_vec_opt_out() 49 Opt { points: vec![] }, in test_vec_vec_empty() 64 points: Some(vec![vec![ in test_option_vec_vec() [all...] |
H A D | value_enum.rs | 91 #[arg(value_enum, default_values_t = vec![ArgChoice::Foo, ArgChoice::Bar])] in vec_for_default_values_t() 104 arg1: vec![ArgChoice::Foo], in vec_for_default_values_t() 105 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t() 111 arg1: vec![ArgChoice::Bar], in vec_for_default_values_t() 112 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t() 118 arg1: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_t() 119 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t() 125 arg1: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_t() 126 arg2: vec![ArgChoice::Foo] in vec_for_default_values_t() 142 #[arg(value_enum, default_values_os_t = vec![ArgChoic in vec_for_default_values_os_t() [all...] |
/third_party/skia/third_party/externals/freetype/src/smooth/ |
H A D | ftsmooth.c | 278 FT_Vector* vec; in ft_smooth_raster_lcd() local 288 for ( vec = points; vec < points_end; vec++ ) in ft_smooth_raster_lcd() 289 vec->x *= 3; in ft_smooth_raster_lcd() 295 for ( vec = points; vec < points_end; vec++ ) in ft_smooth_raster_lcd() 296 vec->x /= 3; in ft_smooth_raster_lcd() 310 FT_Vector* vec; in ft_smooth_raster_lcdv() local 375 FT_Vector* vec; ft_smooth_raster_overlap() local [all...] |
/third_party/node/deps/v8/third_party/wasm-api/ |
H A D | wasm.hh | 35 class vec { class 49 vec(size_t size) : vec(size, size ? new(std::nothrow) T[size] : nullptr) { in vec() function in wasm::vec 53 vec(size_t size, T* data) : size_(size), data_(data) { in vec() function in wasm::vec 60 vec(vec<T>&& that) : vec(that.size_, that.data_.release()) {} in vec() function in wasm::vec 62 ~vec() { in ~vec() 92 void reset(vec& that) { in reset() 98 auto operator=(vec [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftoutln.c | 148 FT_Vector vec; in FT_EXPORT_DEF() local 151 vec.x = SCALED( point->x ); in FT_EXPORT_DEF() 152 vec.y = SCALED( point->y ); in FT_EXPORT_DEF() 155 vec.x / 64.0, vec.y / 64.0 )); in FT_EXPORT_DEF() 156 error = func_interface->line_to( &vec, user ); in FT_EXPORT_DEF() 169 FT_Vector vec; in FT_EXPORT_DEF() local 177 vec.x = SCALED( point->x ); in FT_EXPORT_DEF() 178 vec.y = SCALED( point->y ); in FT_EXPORT_DEF() 184 vec in FT_EXPORT_DEF() 237 FT_Vector vec; FT_EXPORT_DEF() local 474 FT_Vector* vec = outline->points; FT_Outline_Get_CBox() local 512 FT_Vector* vec; FT_Outline_Translate() local 709 FT_Vector* vec; FT_Outline_Transform() local [all...] |
/third_party/skia/src/gpu/tessellate/ |
H A D | Tessellation.h | 24 template<int N> using vec = skvx::Vec<N, float>; 25 using float2 = vec<2>; 26 using float4 = vec<4>; 52 AI vec<N> mix(vec<N> a, vec<N> b, vec<N> T) { in mix() 58 AI vec<N> mix(vec<N> a, vec< [all...] |
/third_party/mesa3d/src/util/format/ |
H A D | u_format_fxt1.c | 148 fxt1_bestcol (float vec[][MAX_COMP], int32_t nv, in fxt1_bestcol() argument 157 e += (vec[j][i] - input[i]) * (vec[j][i] - input[i]); in fxt1_bestcol() 170 fxt1_worst (float vec[MAX_COMP], in fxt1_worst() argument 179 e += (vec[i] - input[k][i]) * (vec[i] - input[k][i]); in fxt1_worst() 219 fxt1_choose (float vec[][MAX_COMP], int32_t nv, in fxt1_choose() argument 230 vec[j][i] = input[m][i]; in fxt1_choose() 290 vec[j][i] = (float)input[hist[j].idx][i]; in fxt1_choose() 295 vec[ in fxt1_choose() 313 fxt1_lloyd(float vec[][MAX_COMP], int32_t nv, uint8_t input[N_TEXELS][MAX_COMP], int32_t nc, int32_t n) fxt1_lloyd() argument 419 float vec[MAX_VECT][MAX_COMP]; fxt1_quantize_CHROMA() local 461 float vec[MAX_VECT][MAX_COMP]; fxt1_quantize_ALPHA0() local 513 float vec[1 + 1 + 1][MAX_COMP]; /* 1.5 extrema for each sub-block */ fxt1_quantize_ALPHA1() local 746 uint8_t vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ fxt1_quantize_MIXED1() local 884 uint8_t vec[2 * 2][MAX_COMP]; /* 2 extrema for each sub-block */ fxt1_quantize_MIXED0() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | mincore.c | 56 unsigned char vec[TEST_SIZE]; in mincore_0100() local 57 memset(vec, 0x0, sizeof(vec)); in mincore_0100() 58 ret = mincore(start, TEST_SIZE, vec); in mincore_0100() 77 unsigned char vec[TEST_SIZE]; in mincore_0200() local 78 memset(vec, 0x0, sizeof(vec)); in mincore_0200() 79 int ret = mincore(memory, TEST_SIZE, vec); in mincore_0200()
|
/third_party/mesa3d/src/gallium/frontends/clover/core/ |
H A D | device.cpp | 476 std::vector<cl_name_version> vec; in supported_extensions() local 478 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_byte_addressable_store" } ); in supported_extensions() 479 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_global_int32_base_atomics" } ); in supported_extensions() 480 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_global_int32_extended_atomics" } ); in supported_extensions() 481 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_local_int32_base_atomics" } ); in supported_extensions() 482 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_local_int32_extended_atomics" } ); in supported_extensions() 484 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_int64_base_atomics" } ); in supported_extensions() 485 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_int64_extended_atomics" } ); in supported_extensions() 488 vec.push_back( cl_name_version{ CL_MAKE_VERSION(1, 0, 0), "cl_khr_fp64" } ); in supported_extensions() 490 vec in supported_extensions() 550 std::vector<cl_name_version> vec; opencl_c_all_versions() local 566 std::vector<cl_name_version> vec; opencl_c_features() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_turtle.py | 145 vec = Vec2D(0.5, 2) 146 self.assertEqual(vec[0], 0.5) 147 self.assertEqual(vec[1], 2) 148 self.assertIsInstance(vec, Vec2D) 153 self.assertRaises(TypeError, Vec2D, vec) 157 vec = Vec2D(0.567, 1.234) 158 self.assertEqual(repr(vec), '(0.57,1.23)') 171 vec = Vec2D(0.5, 2) 174 pickled = pickle.dumps(vec, protocol=proto) 176 self.assertEqual(unpickled, vec) [all...] |