/third_party/flutter/skia/include/private/ |
D | SkVx.h | 54 struct SKVX_ALIGNMENT Vec { struct 58 Vec<N/2,T> lo, hi; argument 65 Vec() = default; 69 Vec(U x) : lo(x), hi(x) {} in Vec() argument 71 Vec(std::initializer_list<T> xs) { in Vec() function 75 lo = Vec<N/2,T>::Load(vals + 0); in Vec() 76 hi = Vec<N/2,T>::Load(vals + N/2); in Vec() 82 static Vec Load(const void* ptr) { in Load() argument 83 Vec v; in Load() 84 memcpy(&v, ptr, sizeof(Vec)); in Load() [all …]
|
/third_party/skia/include/private/ |
D | SkVx.h | 57 struct alignas(N*sizeof(T)) Vec; 60 SI Vec<sizeof...(Ix),T> shuffle(const Vec<N,T>&); 71 Vec<N/2,T> lo, hi; 79 SKVX_ALWAYS_INLINE VecStorage(Vec<2,T> xy, T z, T w) : lo(xy), hi(z,w) {} 80 SKVX_ALWAYS_INLINE VecStorage(T x, T y, Vec<2,T> zw) : lo(x,y), hi(zw) {} 81 SKVX_ALWAYS_INLINE VecStorage(Vec<2,T> xy, Vec<2,T> zw) : lo(xy), hi(zw) {} 83 SKVX_ALWAYS_INLINE Vec<2,T>& xy() { return lo; } 84 SKVX_ALWAYS_INLINE Vec<2,T>& zw() { return hi; } 90 SKVX_ALWAYS_INLINE Vec<2,T> xy() const { return lo; } 91 SKVX_ALWAYS_INLINE Vec<2,T> zw() const { return hi; } [all …]
|
/third_party/skia/src/gpu/geometry/ |
D | GrQuadUtils.h | 49 inline void Outset(const skvx::Vec<4, float>& edgeDistances, GrQuad* quad); 73 skvx::Vec<4, float> inset(const skvx::Vec<4, float>& edgeDistances, 80 void outset(const skvx::Vec<4, float>& edgeDistances, 87 void getEdgeEquations(skvx::Vec<4, float>* a, 88 skvx::Vec<4, float>* b, 89 skvx::Vec<4, float>* c); 93 skvx::Vec<4, float> getEdgeLengths(); 108 skvx::Vec<4, float> fX2D, fY2D; 111 skvx::Vec<4, float> fDX, fDY; 113 skvx::Vec<4, float> fInvLengths; [all …]
|
/third_party/rust/crates/cxx/src/ |
D | rust_vec.rs | 6 use alloc::vec::Vec; 15 repr: [MaybeUninit<usize>; mem::size_of::<Vec<c_void>>() / mem::size_of::<usize>()], 16 marker: PhantomData<Vec<T>>, 21 Self::from(Vec::new()) in new() 24 pub fn from(v: Vec<T>) -> Self { in from() 25 unsafe { mem::transmute::<Vec<T>, RustVec<T>>(v) } in from() 28 pub fn from_ref(v: &Vec<T>) -> &Self { in from_ref() 29 unsafe { &*(v as *const Vec<T> as *const RustVec<T>) } in from_ref() constant 32 pub fn from_mut(v: &mut Vec<T>) -> &mut Self { in from_mut() 33 unsafe { &mut *(v as *mut Vec<T> as *mut RustVec<T>) } in from_mut() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | jsDeclarationsFunctionLikeClasses2.types | 5 export function Vec(len) { 6 >Vec : typeof Vec 22 Vec.prototype = { 23 …Vec.prototype = { /** * @param {Vec} other */ dot(other) { if (other.storage.… 24 >Vec.prototype : { dot(other: Vec): number; magnitude(): number; } 25 >Vec : typeof Vec 26 >prototype : { dot(other: Vec): number; magnitude(): number; } 27 …Vec} other */ dot(other) { if (other.storage.length !== this.storage.length) { … 30 * @param {Vec} other 33 >dot : (other: Vec) => number [all …]
|
D | jsDeclarationsFunctionLikeClasses2.symbols | 5 export function Vec(len) { 6 >Vec : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) 13 >this.storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) 14 >this : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) 15 >storage : Symbol(Vec.storage, Decl(source.js, 3, 26)) 20 Vec.prototype = { 21 >Vec.prototype : Symbol(Vec.prototype, Decl(source.js, 8, 1)) 22 >Vec : Symbol(Vec, Decl(source.js, 0, 0), Decl(source.js, 8, 1)) 23 >prototype : Symbol(Vec.prototype, Decl(source.js, 8, 1)) 26 * @param {Vec} other [all …]
|
D | jsDeclarationsFunctionLikeClasses2.js | 7 export function Vec(len) { class 14 Vec.prototype = { 45 Vec.call(this, 2); 51 __proto__: Vec, 82 exports.Point2D = exports.Vec = void 0; 86 function Vec(len) { 92 exports.Vec = Vec; 93 Vec.prototype = { 123 Vec.call(this, 2); 129 __proto__: Vec, [all …]
|
/third_party/rust/crates/nom/src/multi/ |
D | tests.rs | 13 lib::std::vec::Vec, 23 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 26 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 29 fn empty_sep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 32 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list0_test() 50 assert_eq!(multi(c), Ok((&b"azerty"[..], Vec::new()))); in separated_list0_test() 72 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test() 75 fn multi_longsep(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in separated_list1_test() 107 fn multi(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many0_test() 110 fn multi_empty(i: &[u8]) -> IResult<&[u8], Vec<&[u8]>> { in many0_test() [all …]
|
/third_party/skia/src/effects/imagefilters/ |
D | SkBlurImageFilter.cpp | 242 return bufferCount * sizeof(skvx::Vec<4, uint32_t>); in MakeMaker() 252 skvx::Vec<4, uint32_t>* buffer0 = static_cast<skvx::Vec<4, uint32_t>*>(buffers); in Make() 253 skvx::Vec<4, uint32_t>* buffer1 = buffer0 + passSize; in Make() 254 skvx::Vec<4, uint32_t>* buffer2 = buffer1 + passSize; in Make() 257 skvx::Vec<4, uint32_t>* buffersEnd = buffer2 + ((window & 1) ? passSize : passSize + 1); in Make() 312 GaussPass(skvx::Vec<4, uint32_t>* buffer0, in GaussPass() 313 skvx::Vec<4, uint32_t>* buffer1, in GaussPass() 314 skvx::Vec<4, uint32_t>* buffer2, in GaussPass() 315 skvx::Vec<4, uint32_t>* buffersEnd, in GaussPass() 327 skvx::Vec<4, uint32_t> zero = {0u, 0u, 0u, 0u}; in startBlur() [all …]
|
/third_party/rust/crates/cxx/tests/ffi/ |
D | lib.rs | 117 fn c_return_rust_vec_u8() -> Vec<u8>; in c_return_rust_vec_u8() 118 fn c_return_ref_rust_vec(c: &C) -> &Vec<u8>; in c_return_ref_rust_vec() 119 fn c_return_mut_rust_vec(c: Pin<&mut C>) -> &mut Vec<u8>; in c_return_mut_rust_vec() 120 fn c_return_rust_vec_string() -> Vec<String>; in c_return_rust_vec_string() 121 fn c_return_rust_vec_bool() -> Vec<bool>; in c_return_rust_vec_bool() 150 fn c_take_rust_vec(v: Vec<u8>); in c_take_rust_vec() 151 fn c_take_rust_vec_shared(v: Vec<Shared>); in c_take_rust_vec_shared() 152 fn c_take_rust_vec_string(v: Vec<String>); in c_take_rust_vec_string() 153 fn c_take_rust_vec_index(v: Vec<u8>); in c_take_rust_vec_index() 154 fn c_take_rust_vec_shared_index(v: Vec<Shared>); in c_take_rust_vec_shared_index() [all …]
|
D | tests.h | 114 rust::Vec<uint8_t> c_return_rust_vec_u8(); 115 const rust::Vec<uint8_t> &c_return_ref_rust_vec(const C &c); 116 rust::Vec<uint8_t> &c_return_mut_rust_vec(C &c); 117 rust::Vec<rust::String> c_return_rust_vec_string(); 118 rust::Vec<bool> c_return_rust_vec_bool(); 151 void c_take_rust_vec(rust::Vec<uint8_t> v); 152 void c_take_rust_vec_index(rust::Vec<uint8_t> v); 153 void c_take_rust_vec_shared(rust::Vec<Shared> v); 154 void c_take_rust_vec_ns_shared(rust::Vec<::A::AShared> v); 155 void c_take_rust_vec_nested_ns_shared(rust::Vec<::A::B::ABShared> v); [all …]
|
/third_party/rust/crates/clap/src/parser/matches/ |
D | matched_arg.rs | 18 indices: Vec<usize>, 20 vals: Vec<Vec<AnyValue>>, 21 raw_vals: Vec<Vec<OsString>>, 30 indices: Vec::new(), in new_arg() 32 vals: Vec::new(), in new_arg() 33 raw_vals: Vec::new(), in new_arg() 42 indices: Vec::new(), in new_group() 44 vals: Vec::new(), in new_group() 45 raw_vals: Vec::new(), in new_group() 54 indices: Vec::new(), in new_external() [all …]
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | symm.rs | 647 ) -> Result<Vec<u8>, ErrorStack> { in encrypt() 686 ) -> Result<Vec<u8>, ErrorStack> { in decrypt() 696 ) -> Result<Vec<u8>, ErrorStack> { in cipher() 720 ) -> Result<Vec<u8>, ErrorStack> { in encrypt_aead() 751 ) -> Result<Vec<u8>, ErrorStack> { in decrypt_aead() 902 let pt = Vec::from_hex(pt).unwrap(); in cipher_test() 903 let ct = Vec::from_hex(ct).unwrap(); in cipher_test() 904 let key = Vec::from_hex(key).unwrap(); in cipher_test() 905 let iv = Vec::from_hex(iv).unwrap(); in cipher_test() 926 let pt = Vec::from_hex(pt).unwrap(); in cipher_test_nopad() [all …]
|
D | sign.rs | 344 pub fn sign_to_vec(&self) -> Result<Vec<u8>, ErrorStack> { in sign_to_vec() 386 pub fn sign_oneshot_to_vec(&mut self, data_buf: &[u8]) -> Result<Vec<u8>, ErrorStack> { in sign_oneshot_to_vec() 682 signer.update(&Vec::from_hex(INPUT).unwrap()).unwrap(); in rsa_sign() 696 verifier.update(&Vec::from_hex(INPUT).unwrap()).unwrap(); in rsa_verify_ok() 697 assert!(verifier.verify(&Vec::from_hex(SIGNATURE).unwrap()).unwrap()); in rsa_verify_ok() 707 verifier.update(&Vec::from_hex(INPUT).unwrap()).unwrap(); in rsa_verify_invalid() 709 assert!(!verifier.verify(&Vec::from_hex(SIGNATURE).unwrap()).unwrap()); in rsa_verify_invalid() 713 fn test_hmac(ty: MessageDigest, tests: &[(Vec<u8>, Vec<u8>, Vec<u8>)]) { in test_hmac() 726 let tests: [(Vec<u8>, Vec<u8>, Vec<u8>); 7] = [ in hmac_md5() 730 Vec::from_hex("9294727a3638bb1c13f48ef8158bfc9d").unwrap(), in hmac_md5() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | ArrayRef.h | 74 /*implicit*/ ArrayRef(const SmallVectorTemplateCommon<T, U> &Vec) in ArrayRef() argument 75 : Data(Vec.data()), Length(Vec.size()) { in ArrayRef() 80 /*implicit*/ ArrayRef(const std::vector<T, A> &Vec) in ArrayRef() argument 81 : Data(Vec.data()), Length(Vec.size()) {} in ArrayRef() 93 /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec) in ArrayRef() argument 94 : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()), in ArrayRef() 95 Length(Vec.size()) {} in ArrayRef() 111 const SmallVectorTemplateCommon<U *, DummyT> &Vec, 114 : Data(Vec.data()), Length(Vec.size()) { 120 ArrayRef(const std::vector<U *, A> &Vec, [all …]
|
/third_party/rust/crates/cxx/include/ |
D | cxx.h | 303 class Vec final { 307 Vec() noexcept; 308 Vec(std::initializer_list<T>); 309 Vec(const Vec &); 310 Vec(Vec &&) noexcept; 311 ~Vec() noexcept; 313 Vec &operator=(Vec &&) &noexcept; 314 Vec &operator=(const Vec &) &; 350 void swap(Vec &) noexcept; 353 Vec(unsafe_bitcopy_t, const Vec &) noexcept; [all …]
|
/third_party/rust/crates/cxx/book/src/binding/ |
D | vec.md | 1 {{#title rust::Vec<T> — Rust ♡ C++}} 2 # rust::Vec\<T\> 16 class Vec final { 20 Vec() noexcept; 21 Vec(std::initializer_list<T>); 22 Vec(const Vec &); 23 Vec(Vec &&) noexcept; 24 ~Vec() noexcept; 26 Vec &operator=(Vec &&) noexcept; 27 Vec &operator=(const Vec &); [all …]
|
/third_party/rust/crates/clap/tests/derive/ |
D | occurrences.rs | 9 points: Vec<Vec<i32>>, in test_vec_of_vec() 22 fn parser(s: &str) -> Result<Vec<String>, std::convert::Infallible> { in test_vec_of_vec_opt_out() 29 arg: Vec<::std::vec::Vec<String>>, in test_vec_of_vec_opt_out() 45 points: Vec<Vec<i32>>, in test_vec_vec_empty() 59 points: Option<Vec<Vec<i32>>>, in test_option_vec_vec() 75 points: Option<Vec<Vec<i32>>>, in test_option_vec_vec_empty()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | ArrayRef.h | 81 /*implicit*/ ArrayRef(const SmallVectorTemplateCommon<T, U> &Vec) in ArrayRef() argument 82 : Data(Vec.data()), Length(Vec.size()) { in ArrayRef() 87 /*implicit*/ ArrayRef(const std::vector<T, A> &Vec) in ArrayRef() argument 88 : Data(Vec.data()), Length(Vec.size()) {} in ArrayRef() 107 /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec) in ArrayRef() argument 108 : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()), in ArrayRef() 109 Length(Vec.size()) {} in ArrayRef() 128 const SmallVectorTemplateCommon<U *, DummyT> &Vec, 131 : Data(Vec.data()), Length(Vec.size()) { 137 ArrayRef(const std::vector<U *, A> &Vec, [all …]
|
/third_party/flutter/skia/tests/ |
D | SkVxTest.cpp | 11 using float2 = skvx::Vec<2,float>; 12 using float4 = skvx::Vec<4,float>; 13 using float8 = skvx::Vec<8,float>; 15 using double2 = skvx::Vec<2,double>; 16 using double4 = skvx::Vec<4,double>; 17 using double8 = skvx::Vec<8,double>; 19 using byte2 = skvx::Vec< 2,uint8_t>; 20 using byte4 = skvx::Vec< 4,uint8_t>; 21 using byte8 = skvx::Vec< 8,uint8_t>; 22 using byte16 = skvx::Vec<16,uint8_t>; [all …]
|
/third_party/rust/crates/clap/tests/builder/ |
D | indices.rs | 24 m.indices_of("exclude").unwrap().collect::<Vec<_>>(), in indices_mult_opts() 27 assert_eq!(m.indices_of("include").unwrap().collect::<Vec<_>>(), [5, 6]); in indices_mult_opts() 89 assert_eq!(m.indices_of("exclude").unwrap().collect::<Vec<_>>(), [4]); in indices_mult_flags() 90 assert_eq!(m.indices_of("include").unwrap().collect::<Vec<_>>(), [5]); in indices_mult_flags() 102 assert_eq!(m.indices_of("exclude").unwrap().collect::<Vec<_>>(), [4]); in indices_mult_flags_combined() 103 assert_eq!(m.indices_of("include").unwrap().collect::<Vec<_>>(), [5]); in indices_mult_flags_combined() 116 assert_eq!(m.indices_of("exclude").unwrap().collect::<Vec<_>>(), [4]); in indices_mult_flags_opt_combined() 117 assert_eq!(m.indices_of("include").unwrap().collect::<Vec<_>>(), [5]); in indices_mult_flags_opt_combined() 118 assert_eq!(m.indices_of("option").unwrap().collect::<Vec<_>>(), [7]); in indices_mult_flags_opt_combined() 131 assert_eq!(m.indices_of("exclude").unwrap().collect::<Vec<_>>(), [4]); in indices_mult_flags_opt_combined_eq() [all …]
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | scalar_multiplication.hpp | 29 template <typename T, typename Vec> 32 && std::is_arithmetic<T>::value, Vec // But it may be an int or double (no vec3 or mat3, ...) 35 #define GLM_IMPLEMENT_SCAL_MULT(Vec) \ argument 37 return_type_scalar_multiplication<T, Vec> \ 38 operator*(T const & s, Vec rh){ \ 43 return_type_scalar_multiplication<T, Vec> \ 44 operator*(Vec lh, T const & s){ \ 49 return_type_scalar_multiplication<T, Vec> \ 50 operator/(Vec lh, T const & s){ \
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | StringTableBuilder.cpp | 89 static void multikeySort(MutableArrayRef<StringPair *> Vec, int Pos) { in multikeySort() argument 91 if (Vec.size() <= 1) in multikeySort() 97 int Pivot = charTailAt(Vec[0], Pos); in multikeySort() 99 size_t J = Vec.size(); in multikeySort() 101 int C = charTailAt(Vec[K], Pos); in multikeySort() 103 std::swap(Vec[I++], Vec[K++]); in multikeySort() 105 std::swap(Vec[--J], Vec[K]); in multikeySort() 110 multikeySort(Vec.slice(0, I), Pos); in multikeySort() 111 multikeySort(Vec.slice(J), Pos); in multikeySort() 116 Vec = Vec.slice(I, J - I); in multikeySort()
|
/third_party/rust/crates/bindgen/bindgen-cli/ |
D | options.rs | 59 bitfield_enum: Vec<String>, 62 newtype_enum: Vec<String>, 65 newtype_global_enum: Vec<String>, 68 rustified_enum: Vec<String>, 71 constified_enum: Vec<String>, 74 constified_enum_module: Vec<String>, 83 normal_alias: Vec<String>, 86 new_type_alias: Vec<String>, 89 new_type_alias_deref: Vec<String>, 95 bindgen_wrapper_union: Vec<String>, [all …]
|
/third_party/rust/crates/nix/test/sys/ |
D | test_uio.rs | 19 let mut to_write = Vec::with_capacity(16 * 128); in test_writev() 30 let mut iovecs = Vec::new(); in test_writev() 46 let mut read_buf: Vec<u8> = iter::repeat(0u8).take(128 * 16).collect(); in test_writev() 71 let mut storage = Vec::new(); in test_readv() 80 let v: Vec<u8> = iter::repeat(0u8).take(vec_len).collect(); in test_readv() 84 let mut iovecs = Vec::with_capacity(storage.len()); in test_readv() 95 let mut read_buf = Vec::with_capacity(to_write.len()); in test_readv() 115 let mut file_content = Vec::new(); in test_pwrite() 136 let file_content: Vec<u8> = (0..64).collect(); in test_pread() 141 let expected: Vec<_> = (16..32).collect(); in test_pread() [all …]
|