/third_party/skia/third_party/externals/libwebp/tests/fuzzer/ |
H A D | fuzz_utils.h | 47 // Extract an integer in [0, max_value]. 49 static WEBP_INLINE uint32_t Extract(uint32_t max_value, in Extract() function 97 int VP8GetCPUInfo_index = Extract(4, data, size, bit_pos); in ExtractAndDisableOptimizations() 107 config->lossless = Extract(1, data, size, bit_pos); in ExtractWebPConfig() 108 config->quality = Extract(100, data, size, bit_pos); in ExtractWebPConfig() 109 config->method = Extract(6, data, size, bit_pos); in ExtractWebPConfig() 111 (WebPImageHint)Extract(WEBP_HINT_LAST - 1, data, size, bit_pos); in ExtractWebPConfig() 112 config->segments = 1 + Extract(3, data, size, bit_pos); in ExtractWebPConfig() 113 config->sns_strength = Extract(100, data, size, bit_pos); in ExtractWebPConfig() 114 config->filter_strength = Extract(10 in ExtractWebPConfig() [all...] |
H A D | animencoder_fuzzer.cc | 45 pic.use_argb = Extract(1, data, size, bit_pos); in AddFrame() 129 // Extract a configuration from the packed bits. in LLVMFuzzerTestOneInput() 135 anim_config.minimize_size = Extract(1, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 136 anim_config.kmax = Extract(15, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 140 min_kmin + Extract((uint32_t)(max_kmin - min_kmin), data, size, &bit_pos); in LLVMFuzzerTestOneInput() 141 anim_config.allow_mixed = Extract(1, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 144 const int nb_frames = 1 + Extract(15, data, size, &bit_pos); in LLVMFuzzerTestOneInput() 153 timestamp_ms += (1 << (2 + Extract(15, data, size, &bit_pos))) + in LLVMFuzzerTestOneInput() 154 Extract(1, data, size, &bit_pos); // [1..131073], arbitrary in LLVMFuzzerTestOneInput()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | SubzeroReactor.cpp | 1487 Int x = Extract(v, 0); 1500 Int x = Extract(v, 0); 1502 Int y = Extract(v, 1); 2250 RValue<Byte> Extract(RValue<Byte8> val, int i) 2267 result = Insert(result, SaturateUnsigned(Short(Int(Extract(x, 0)) + Int(Extract(y, 0)))), 0); 2268 result = Insert(result, SaturateUnsigned(Short(Int(Extract(x, 1)) + Int(Extract(y, 1)))), 1); 2269 result = Insert(result, SaturateUnsigned(Short(Int(Extract(x, 2)) + Int(Extract( [all...] |
H A D | EmulatedIntrinsics.cpp | 29 using Type = typename decltype(rr::Extract(std::declval<RValue<T>>(), 0))::rvalue_underlying_type; 40 result = Insert(result, Call(func, Extract(x, 0)), 0); in call4() 41 result = Insert(result, Call(func, Extract(x, 1)), 1); in call4() 42 result = Insert(result, Call(func, Extract(x, 2)), 2); in call4() 43 result = Insert(result, Call(func, Extract(x, 3)), 3); in call4() 52 result = Insert(result, Call(func, Extract(x, 0), Extract(y, 0)), 0); in call4() 53 result = Insert(result, Call(func, Extract(x, 1), Extract(y, 1)), 1); in call4() 54 result = Insert(result, Call(func, Extract( in call4() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
H A D | InterleavedAccessPass.cpp | 294 auto *Extract = dyn_cast<ExtractElementInst>(*UI); in lowerInterleavedLoad() local 295 if (Extract && isa<ConstantInt>(Extract->getIndexOperand())) { in lowerInterleavedLoad() 296 Extracts.push_back(Extract); in lowerInterleavedLoad() 366 for (auto *Extract : Extracts) { in tryReplaceExtracts() 368 auto *IndexOperand = cast<ConstantInt>(Extract->getIndexOperand()); in tryReplaceExtracts() 377 if (!DT->dominates(Shuffle, Extract)) in tryReplaceExtracts() 387 assert(Extract->getOperand(0) == Shuffle->getOperand(0) && in tryReplaceExtracts() 389 ReplacementMap[Extract] = std::make_pair(Shuffle, I); in tryReplaceExtracts() 394 if (ReplacementMap.count(Extract)) in tryReplaceExtracts() 407 auto *Extract = Replacement.first; tryReplaceExtracts() local [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | conditionalTypes2.js | 29 // Extract<T, Function> is a T that is known to be a Function 30 function isFunction<T>(value: T): value is Extract<T, Function> { 67 function f20<T>(x: Extract<Extract<T, Foo>, Bar>, y: Extract<T, Foo & Bar>, z: Extract2<T, Foo, Bar>) { 73 function f21<T>(x: Extract<Extract<T, Foo>, Bar>, y: Extract<T, Foo & Bar>, z: Extract2<T, Foo, Bar>) { 226 [PropertyName in Extract<keyof T, string>]: T[PropertyName] extends RestrictToType ? PropertyName : never 227 }[Extract<keyo [all...] |
H A D | deepComparisons.js | 3 let v1: Extract<T, string> = 0 as any as T; // Error 4 let v2: Extract<T[K1], string> = 0 as any as T[K1]; // Error 5 let v3: Extract<T[K1][K2], string> = 0 as any as T[K1][K2]; // No error
|
H A D | conditionalTypes1.js | 3 type T01 = Extract<"a" | "b" | "c" | "d", "a" | "c" | "f">; // "a" | "c" 6 type T03 = Extract<string | number | (() => void), Function>; // () => void 38 type T11 = Extract<Options, { k: "a" | "b" }>; // { k: "a", a: number } | { k: "b", b: string } 41 type T13 = Extract<Options, { k: "a" } | { k: "b" }>; // { k: "a", a: number } | { k: "b", b: string } 44 type T15 = Extract<Options, { q: "a" }>; // never 46 declare function f5<T extends Options, K extends string>(p: K): Extract<T, { k: K }>; 49 type OptionsOfKind<K extends Options["k"]> = Extract<Options, { k: K }>; 53 type Select<T, K extends keyof T, V extends T[K]> = Extract<T, { [P in K]: V }>; 464 type T01 = Extract<"a" | "b" | "c" | "d", "a" | "c" | "f">;
466 type T03 = Extract<strin [all...] |
H A D | conditionalTypesSimplifyWhenTrivial.js | 12 params: Pick<Params, Extract<keyof Params, keyof Params>>, 15 function fn4<T>(x: Extract<T, T>) { 20 declare var x: Extract<number | string, any>; // Should be `numebr | string` and not `any`
|
H A D | infiniteConstraints.js | 4 type T1<B extends { [K in keyof B]: Extract<B[Exclude<keyof B, K>], { val: string }>["val"] }> = B; 22 [K in keyof T]: Extract<T[K], Value>["val"] extends Extract<T[Exclude<keyof T, K>], Value>["val"]
|
H A D | extractInferenceImprovement.js | 3 function getProperty2<T, K extends keyof T>(obj: T, key: Extract<K, string>): T[K] { 7 function getProperty3<T, K extends Extract<keyof T, string>>(obj: T, key: K): T[K] {
|
H A D | deferredLookupTypeResolution.js | 9 type ObjectHasKey<O, L extends string> = StringContains<Extract<keyof O, string>, L> 46 type ObjectHasKey<O, L extends string> = StringContains<Extract<keyof O, string>, L>;
|
H A D | deferredLookupTypeResolution2.js | 6 type ObjectHasKey<O, L extends string> = StringContains<Extract<keyof O, string>, L>; 36 type ObjectHasKey<O, L extends string> = StringContains<Extract<keyof O, string>, L>;
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | str_format.h | 341 str_format_internal::UntypedFormatSpecImpl::Extract(format), in StrFormat() 360 dst, str_format_internal::UntypedFormatSpecImpl::Extract(format), in StrAppendFormat() 378 str_format_internal::UntypedFormatSpecImpl::Extract(format), in StreamFormat() 398 stdout, str_format_internal::UntypedFormatSpecImpl::Extract(format), in PrintF() 419 output, str_format_internal::UntypedFormatSpecImpl::Extract(format), in FPrintF() 448 output, size, str_format_internal::UntypedFormatSpecImpl::Extract(format), in SNPrintF() 507 str_format_internal::FormatRawSinkImpl::Extract(raw_sink), in Format() 508 str_format_internal::UntypedFormatSpecImpl::Extract(format), in Format() 565 str_format_internal::FormatRawSinkImpl::Extract(raw_sink), in FormatUntyped() 566 str_format_internal::UntypedFormatSpecImpl::Extract(forma in FormatUntyped() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderArithmetic.cpp | 240 dst.move(i, SIMD::Float(Extract(src.Float(i), 1) - Extract(src.Float(i), 0))); in EmitUnaryOp() 244 dst.move(i, SIMD::Float(Extract(src.Float(i), 2) - Extract(src.Float(i), 0))); in EmitUnaryOp() 248 dst.move(i, SIMD::Float(Abs(Extract(src.Float(i), 1) - Extract(src.Float(i), 0)) + Abs(Extract(src.Float(i), 2) - Extract(src.Float(i), 0)))); in EmitUnaryOp() 252 auto firstRow = Extract(src.Float(i), 1) - Extract(sr in EmitUnaryOp() [all...] |
H A D | ShaderCore.hpp | 394 auto offset = Extract(offs, 0); in Load() 400 auto offset = Extract(offs, 0); in Load() 409 If(Extract(mask, i) != 0) in Load() 411 auto offset = Extract(offs, i); in Load() 450 auto scalarVal = Extract(maskedVal, 0) | in Store() 451 Extract(maskedVal, 1) | in Store() 452 Extract(maskedVal, 2) | in Store() 453 Extract(maskedVal, 3); in Store() 478 auto offset = Extract(offs, 0); in Store() 486 If(Extract(mas in Store() [all...] |
H A D | ComputeProgram.cpp | 78 As<SIMD::Float>(SIMD::Int(Extract(routine->numWorkgroups, component))); in setWorkgroupBuiltins() 94 As<SIMD::Float>(SIMD::Int(Extract(routine->workgroupSize, component))); in setWorkgroupBuiltins() 117 Int workgroupSizeX = Extract(workgroupSize, X); in setSubgroupBuiltins() 118 Int workgroupSizeY = Extract(workgroupSize, Y); in setSubgroupBuiltins() 133 globalInvocationID[X] = SIMD::Int(Extract(localBase, X)) + localInvocationID[X]; in setSubgroupBuiltins() 134 globalInvocationID[Y] = SIMD::Int(Extract(localBase, Y)) + localInvocationID[Y]; in setSubgroupBuiltins() 135 globalInvocationID[Z] = SIMD::Int(Extract(localBase, Z)) + localInvocationID[Z]; in setSubgroupBuiltins()
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | Blitter.cpp | 862 if(writeA) { *Pointer<SByte>(element + 3) = SByte(Extract(c, 3)); } in write() 868 if(writeB) { *Pointer<SByte>(element + 2) = SByte(Extract(c, 2)); } in write() 870 if(writeG) { *Pointer<SByte>(element + 1) = SByte(Extract(c, 1)); } in write() 872 if(writeR) { *Pointer<SByte>(element) = SByte(Extract(c, 0)); } in write() 875 if(writeA) { *Pointer<Byte>(element + 3) = Byte(Extract(c, 3)); } in write() 881 if(writeB) { *Pointer<Byte>(element + 2) = Byte(Extract(c, 2)); } in write() 883 if(writeG) { *Pointer<Byte>(element + 1) = Byte(Extract(c, 1)); } in write() 885 if(writeR) { *Pointer<Byte>(element) = Byte(Extract(c, 0)); } in write() 888 if(writeA) { *Pointer<Short>(element + 6) = Short(Extract(c, 3)); } in write() 894 if(writeB) { *Pointer<Short>(element + 4) = Short(Extract( in write() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLateEHPrepare.cpp | 270 for (auto *Extract : ExtractInstrs) { in addExceptionExtraction() 271 MachineBasicBlock *EHPad = getMatchingEHPad(Extract); in addExceptionExtraction() 278 if (Catch->getNextNode() != Extract) in addExceptionExtraction() 279 EHPad->insert(Catch->getNextNode(), Extract->removeFromParent()); in addExceptionExtraction() 302 ThenMBB->splice(ThenMBB->end(), EHPad, Extract, EHPad->end()); in addExceptionExtraction() 307 DebugLoc DL = Extract->getDebugLoc(); in addExceptionExtraction()
|
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
H A D | Blitter.cpp | 1240 if(writeA) { *Pointer<SByte>(element + 3) = SByte(Extract(c, 3)); } in write() 1244 if(writeB) { *Pointer<SByte>(element) = SByte(Extract(c, 2)); } in write() 1245 if(writeG) { *Pointer<SByte>(element + 1) = SByte(Extract(c, 1)); } in write() 1246 if(writeR) { *Pointer<SByte>(element + 2) = SByte(Extract(c, 0)); } in write() 1252 if(writeA) { *Pointer<SByte>(element + 3) = SByte(Extract(c, 3)); } in write() 1256 if(writeB) { *Pointer<SByte>(element + 2) = SByte(Extract(c, 2)); } in write() 1260 if(writeG) { *Pointer<SByte>(element + 1) = SByte(Extract(c, 1)); } in write() 1264 if(writeR) { *Pointer<SByte>(element) = SByte(Extract(c, 0)); } in write() 1306 if(writeA) { *Pointer<Byte>(element + 3) = Byte(Extract(c, 3)); } in write() 1311 if(writeB) { *Pointer<Byte>(element) = Byte(Extract( in write() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | BinaryStreamArray.h | 159 : IterRef(Array.Stream.drop_front(Offset)), Extract(E), in VarStreamArrayIterator() 164 auto EC = Extract(IterRef, ThisLen, ThisValue); in VarStreamArrayIterator() 173 explicit VarStreamArrayIterator(const Extractor &E) : Extract(E) {} in VarStreamArrayIterator() 213 auto EC = Extract(IterRef, ThisLen, ThisValue); in operator +=() 243 Extractor Extract; member in llvm::VarStreamArrayIterator
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | ShaderCore.cpp | 581 Int index0 = Extract(index, 0); in operator []() 582 Int index1 = Extract(index, 1); in operator []() 583 Int index2 = Extract(index, 2); in operator []() 584 Int index3 = Extract(index, 3); in operator []() 588 r.x.x = Extract(x[0][index0], 0); in operator []() 589 r.x.y = Extract(x[0][index1], 1); in operator []() 590 r.x.z = Extract(x[0][index2], 2); in operator []() 591 r.x.w = Extract(x[0][index3], 3); in operator []() 593 r.y.x = Extract(y[0][index0], 0); in operator []() 594 r.y.y = Extract( in operator []() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
H A D | bind_test.cc | 29 bool Extract(const char *s, UnboundConversion *props, int *next) const { in Extract() function in absl::str_format_internal::__anon19383::FormatBindTest 89 if (Extract(e.fmt, &props, &next)) { in TEST_F() 112 ASSERT_TRUE(Extract("*d", &props, &next)); in TEST_F()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/memory/ |
H A D | memory.h | 254 template <template <typename> class Extract, typename Obj, typename Default, 260 template <template <typename> class Extract, typename Obj, typename Default> 261 struct ExtractOr<Extract, Obj, Default, void_t<Extract<Obj>>> { 262 using type = Extract<Obj>; 265 template <template <typename> class Extract, typename Obj, typename Default> 266 using ExtractOrT = typename ExtractOr<Extract, Obj, Default, void>::type;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
H A D | LoadStoreVectorizer.cpp | 1054 Value *Extract = Builder.CreateExtractElement(Store->getValueOperand(), in vectorizeStoreChain() local 1056 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain() 1057 Extract = Builder.CreateBitCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain() 1060 Builder.CreateInsertElement(Vec, Extract, Builder.getInt32(NewIdx)); in vectorizeStoreChain() 1067 Value *Extract = Store->getValueOperand(); in vectorizeStoreChain() local 1068 if (Extract->getType() != StoreTy->getScalarType()) in vectorizeStoreChain() 1069 Extract = in vectorizeStoreChain() 1070 Builder.CreateBitOrPointerCast(Extract, StoreTy->getScalarType()); in vectorizeStoreChain() 1073 Builder.CreateInsertElement(Vec, Extract, Builde in vectorizeStoreChain() [all...] |