/third_party/node/deps/v8/src/wasm/ |
H A D | simd-shuffle.cc | 5 #include "src/wasm/simd-shuffle.h" 15 void SimdShuffle::CanonicalizeShuffle(bool inputs_equal, uint8_t* shuffle, in CanonicalizeShuffle() argument 26 if (shuffle[i] < kSimd128Size) { in CanonicalizeShuffle() 40 // encountered first. This makes architectural shuffle pattern matching in CanonicalizeShuffle() 42 if (shuffle[0] >= kSimd128Size) { in CanonicalizeShuffle() 43 // The second operand is used first. Swap inputs and adjust the shuffle. in CanonicalizeShuffle() 46 shuffle[i] ^= kSimd128Size; in CanonicalizeShuffle() 52 for (int i = 0; i < kSimd128Size; ++i) shuffle[i] &= kSimd128Size - 1; in CanonicalizeShuffle() 56 bool SimdShuffle::TryMatchIdentity(const uint8_t* shuffle) { in TryMatchIdentity() argument 58 if (shuffle[ in TryMatchIdentity() 63 TryMatch32x4Rotate(const uint8_t* shuffle, uint8_t* shuffle32x4, bool is_swizzle) TryMatch32x4Rotate() argument 82 TryMatch32x4Shuffle(const uint8_t* shuffle, uint8_t* shuffle32x4) TryMatch32x4Shuffle() argument 94 TryMatch16x8Shuffle(const uint8_t* shuffle, uint8_t* shuffle16x8) TryMatch16x8Shuffle() argument 106 TryMatchConcat(const uint8_t* shuffle, uint8_t* offset) TryMatchConcat() argument 123 TryMatchBlend(const uint8_t* shuffle) TryMatchBlend() argument 130 PackShuffle4(uint8_t* shuffle) PackShuffle4() argument 151 Pack4Lanes(const uint8_t* shuffle) Pack4Lanes() argument 160 Pack16Lanes(uint32_t* dst, const uint8_t* shuffle) Pack16Lanes() argument 166 AllInRangeOrTopBitSet( std::array<uint8_t, kSimd128Size> shuffle) AllInRangeOrTopBitSet() argument [all...] |
H A D | simd-shuffle.h | 21 // Converts a shuffle into canonical form, meaning that the first lane index 23 // swizzle. Returns canonicalized |shuffle|, |needs_swap|, and |is_swizzle|. 26 static void CanonicalizeShuffle(bool inputs_equal, uint8_t* shuffle, 29 // Tries to match an 8x16 byte shuffle to the identity shuffle, which is 30 // [0 1 ... 15]. This should be called after canonicalizing the shuffle, so 31 // the second identity shuffle, [16 17 .. 31] is converted to the first one. 32 static bool TryMatchIdentity(const uint8_t* shuffle); 34 // Tries to match a byte shuffle to a scalar splat operation. Returns the 37 static bool TryMatchSplat(const uint8_t* shuffle, in argument [all...] |
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | lossless_enc_neon.c | 40 const uint8x16_t shuffle) { in DoGreenShuffle_NEON() 41 return vcombine_u8(vtbl1q_u8(argb, vget_low_u8(shuffle)), in DoGreenShuffle_NEON() 42 vtbl1q_u8(argb, vget_high_u8(shuffle))); in DoGreenShuffle_NEON() 49 const uint8x8_t shuffle) { in DoGreenShuffle_NEON() 50 return vcombine_u8(vtbl1_u8(vget_low_u8(argb), shuffle), in DoGreenShuffle_NEON() 51 vtbl1_u8(vget_high_u8(argb), shuffle)); in DoGreenShuffle_NEON() 59 const uint8x16_t shuffle = vld1q_u8(kGreenShuffle); in SubtractGreenFromBlueAndRed_NEON() local 61 const uint8x8_t shuffle = vld1_u8(kGreenShuffle); in SubtractGreenFromBlueAndRed_NEON() local 65 const uint8x16_t greens = DoGreenShuffle_NEON(argb, shuffle); in SubtractGreenFromBlueAndRed_NEON() 96 const uint8x16_t shuffle in TransformColor_NEON() local 39 DoGreenShuffle_NEON(const uint8x16_t argb, const uint8x16_t shuffle) DoGreenShuffle_NEON() argument 48 DoGreenShuffle_NEON(const uint8x16_t argb, const uint8x8_t shuffle) DoGreenShuffle_NEON() argument 99 const uint8x8_t shuffle = vld1_u8(k0g0g); TransformColor_NEON() local [all...] |
H A D | lossless_neon.c | 77 const uint8x8_t shuffle = vld1_u8(kRGBAShuffle); in ConvertBGRAToRGBA_NEON() local 80 vst1_u8(dst, vtbl1_u8(pixels, shuffle)); in ConvertBGRAToRGBA_NEON() 509 const uint8x16_t shuffle) { in DoGreenShuffle_NEON() 510 return vcombine_u8(vtbl1q_u8(argb, vget_low_u8(shuffle)), in DoGreenShuffle_NEON() 511 vtbl1q_u8(argb, vget_high_u8(shuffle))); in DoGreenShuffle_NEON() 518 const uint8x8_t shuffle) { in DoGreenShuffle_NEON() 519 return vcombine_u8(vtbl1_u8(vget_low_u8(argb), shuffle), in DoGreenShuffle_NEON() 520 vtbl1_u8(vget_high_u8(argb), shuffle)); in DoGreenShuffle_NEON() 528 const uint8x16_t shuffle = vld1q_u8(kGreenShuffle); in AddGreenToBlueAndRed_NEON() local 530 const uint8x8_t shuffle in AddGreenToBlueAndRed_NEON() local 508 DoGreenShuffle_NEON(const uint8x16_t argb, const uint8x16_t shuffle) DoGreenShuffle_NEON() argument 517 DoGreenShuffle_NEON(const uint8x16_t argb, const uint8x8_t shuffle) DoGreenShuffle_NEON() argument 566 const uint8x16_t shuffle = vld1q_u8(kg0g0); TransformColorInverse_NEON() local 569 const uint8x8_t shuffle = vld1_u8(k0g0g); TransformColorInverse_NEON() local [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_opt_intrinsics.c | 34 nir_intrinsic_instr *shuffle = nir_src_as_intrinsic(src); in src_is_single_use_shuffle() local 35 if (shuffle == NULL || shuffle->intrinsic != nir_intrinsic_shuffle) in src_is_single_use_shuffle() 42 if (!list_is_empty(&shuffle->dest.ssa.if_uses) || in src_is_single_use_shuffle() 43 !list_is_singular(&shuffle->dest.ssa.uses)) in src_is_single_use_shuffle() 46 assert(shuffle->src[0].is_ssa); in src_is_single_use_shuffle() 47 assert(shuffle->src[1].is_ssa); in src_is_single_use_shuffle() 49 *data = shuffle->src[0].ssa; in src_is_single_use_shuffle() 50 *index = shuffle->src[1].ssa; in src_is_single_use_shuffle() 62 * could try to do something fancy where we check if the shuffle i in try_opt_bcsel_of_shuffle() 88 nir_ssa_def *shuffle = nir_shuffle(b, data1, index); try_opt_bcsel_of_shuffle() local [all...] |
H A D | nir_lower_subgroups.c | 288 nir_intrinsic_instr *shuffle = in lower_to_shuffle() local 290 shuffle->num_components = intrin->num_components; in lower_to_shuffle() 291 nir_src_copy(&shuffle->src[0], &intrin->src[0]); in lower_to_shuffle() 292 shuffle->src[1] = nir_src_for_ssa(index); in lower_to_shuffle() 293 nir_ssa_dest_init(&shuffle->instr, &shuffle->dest, in lower_to_shuffle() 298 if (options->lower_to_scalar && shuffle->num_components > 1) { in lower_to_shuffle() 299 return lower_subgroup_op_to_scalar(b, shuffle, lower_to_32bit); in lower_to_shuffle() 300 } else if (lower_to_32bit && shuffle->src[0].ssa->bit_size == 64) { in lower_to_shuffle() 301 return lower_subgroup_op_to_32bit(b, shuffle); in lower_to_shuffle() [all...] |
/third_party/skia/src/gpu/geometry/ |
H A D | GrQuadUtils.cpp | 32 return skvx::shuffle<2, 0, 3, 1>(v); in next_cw() 37 return skvx::shuffle<1, 3, 0, 2>(v); in next_ccw() 42 return skvx::shuffle<3, 2, 1, 0>(v); in next_diag() 738 V4f d = min(x2d * skvx::shuffle<1,2,1,2>(fA) + y2d * skvx::shuffle<1,2,1,2>(fB) in isSubpixel() 739 + skvx::shuffle<1,2,1,2>(fC), in isSubpixel() 740 x2d * skvx::shuffle<3,3,0,0>(fA) + y2d * skvx::shuffle<3,3,0,0>(fB) in isSubpixel() 741 + skvx::shuffle<3,3,0,0>(fC)); in isSubpixel() 773 V4f dists1 = px * skvx::shuffle< in computeDegenerateQuad() [all...] |
/third_party/skia/docs/examples/ |
H A D | subset_example.cpp | 8 int shuffle[N * N]; in REG_FIDDLE() local 10 shuffle[i] = i; in REG_FIDDLE() 14 std::swap(shuffle[i], shuffle[rand() % (N * N - i) + i]); in REG_FIDDLE() 20 int x = shuffle[(N * i) + j] % N; in REG_FIDDLE() 21 int y = shuffle[(N * i) + j] / N; in REG_FIDDLE()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | randen_hwaes.cc | 278 // Block shuffles applies a shuffle to the entire state between AES rounds. 279 // Improved odd-even shuffle from "New criterion for diffusion property". 284 constexpr size_t shuffle[RandenTraits::kFeistelBlocks] = { 287 const Vector128 v0 = Vector128Load(state + shuffle[0]); 288 const Vector128 v1 = Vector128Load(state + shuffle[1]); 289 const Vector128 v2 = Vector128Load(state + shuffle[2]); 290 const Vector128 v3 = Vector128Load(state + shuffle[3]); 291 const Vector128 v4 = Vector128Load(state + shuffle[4]); 292 const Vector128 v5 = Vector128Load(state + shuffle[5]); 293 const Vector128 v6 = Vector128Load(state + shuffle[ [all...] |
H A D | randen_slow.cc | 303 // The improved Feistel block shuffle function for 16 blocks. 307 "Feistel block shuffle only works for 16 blocks."); in BlockShuffle() 309 constexpr size_t shuffle[RandenTraits::kFeistelBlocks] = { in BlockShuffle() local 318 const absl::uint128 v0 = source[shuffle[i]]; in BlockShuffle() 324 const absl::uint128 v0 = state[shuffle[0]]; in BlockShuffle() 325 const absl::uint128 v1 = state[shuffle[1]]; in BlockShuffle() 326 const absl::uint128 v2 = state[shuffle[2]]; in BlockShuffle() 327 const absl::uint128 v3 = state[shuffle[3]]; in BlockShuffle() 328 const absl::uint128 v4 = state[shuffle[4]]; in BlockShuffle() 329 const absl::uint128 v5 = state[shuffle[ in BlockShuffle() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dvaudiodec.c | 32 int16_t shuffle[2000]; member 57 for (i = 0; i < FF_ARRAY_ELEMS(s->shuffle); i++) { in decode_init() 61 s->shuffle[i] = 80 * ((21 * (i % 3) + 9 * (i / 3) + ((i / a) % 3)) % b) + in decode_init() 105 const uint8_t *v = &src[s->shuffle[i]]; in decode_frame()
|
/third_party/cups-filters/filter/pdftopdf/ |
H A D | pdftopdf_processor.cc | 166 std::vector<int> shuffle; in processPDFTOPDF() local 168 shuffle=bookletShuffle(numOrigPages,param.bookSignature); in processPDFTOPDF() 176 shuffle.resize(numOrigPages); in processPDFTOPDF() 177 std::iota(shuffle.begin(),shuffle.end(),0); in processPDFTOPDF() 179 const int numPages=std::max(shuffle.size(),pages.size()); in processPDFTOPDF() 324 if (shuffle[iA] >= numOrigPages) in processPDFTOPDF() 328 page=pages[shuffle[iA]]; in processPDFTOPDF() 351 if (shuffle[iA]>=numOrigPages) { in processPDFTOPDF()
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/ |
H A D | run.js | 58 return random.shuffle(inputs); 87 random.shuffle([chakraCorpus, spiderMonkeyCorpus, jscCorpus, 93 random.shuffle([v8Corpus, spiderMonkeyCorpus, jscCorpus, 99 random.shuffle([v8Corpus, chakraCorpus, jscCorpus, 105 random.shuffle([chakraCorpus, spiderMonkeyCorpus, v8Corpus,
|
H A D | random.js | 95 function shuffle(array) { function 109 shuffle: shuffle,
|
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/mutators/ |
H A D | array_mutator.js | 78 function shuffle() { function 80 random.shuffle(elements); 97 shuffle,
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawOutputLocationTests.cpp | 106 tcu::TestCaseGroup* const shuffle = new tcu::TestCaseGroup(testCtx, "shuffle"); in createTests() member in vkt::Draw::__anon27942::tcu 107 static const char dataDir[] = "draw/output_location/shuffle"; in createTests() 115 testGroup->addChild(shuffle); in createTests() 121 shuffle->addChild(testCase); in createTests()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawOutputLocationTests.cpp | 104 // .shuffle in createTests() 106 tcu::TestCaseGroup* const shuffle = new tcu::TestCaseGroup(testCtx, "shuffle", "Test output location shuffling"); in createTests() member in vkt::Draw::__anon29179::tcu 107 static const char dataDir[] = "draw/output_location/shuffle"; in createTests() 115 testGroup->addChild(shuffle); in createTests() 121 shuffle->addChild(testCase); in createTests()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_pack.c | 84 * Build shuffle vectors that match PUNPCKLxx and PUNPCKHxx instructions. 157 * Build shuffle vectors that match PACKxx (SSE) instructions or 297 LLVMValueRef shuffle, elems[LP_MAX_VECTOR_LENGTH]; in lp_build_uninterleave1() local 304 shuffle = LLVMConstVector(elems, num_elems / 2); in lp_build_uninterleave1() 306 return LLVMBuildShuffleVector(gallivm->builder, a, a, shuffle, ""); in lp_build_uninterleave1() 323 LLVMValueRef shuffle; in lp_build_interleave2() local 329 * a natural match when using 2x128bit vectors) the "normal" unpack shuffle in lp_build_interleave2() 347 shuffle = lp_build_const_unpack_shuffle(gallivm, type.length, lo_hi); in lp_build_interleave2() 349 return LLVMBuildShuffleVector(gallivm->builder, a, b, shuffle, ""); in lp_build_interleave2() 388 LLVMValueRef shuffle in lp_build_interleave2_half() local 391 LLVMValueRef shuffle = lp_build_const_unpack_shuffle_16wide(gallivm, lo_hi); lp_build_interleave2_half() local 578 LLVMValueRef shuffle; lp_build_pack2() local [all...] |
H A D | lp_bld_swizzle.c | 62 /* The shuffle vector is always made of int32 elements */ in lp_build_broadcast() 90 * Combined extract and broadcast (mere shuffle in most cases) 125 * shuffle - result can be of different length. in lp_build_extract_broadcast() 127 LLVMValueRef shuffle; in lp_build_extract_broadcast() local 128 shuffle = lp_build_broadcast(gallivm, in lp_build_extract_broadcast() 133 shuffle, ""); in lp_build_extract_broadcast() 395 unsigned shuffle; in lp_build_swizzle_aos() local 403 shuffle = j + swizzles[i]; in lp_build_swizzle_aos() 404 shuffles[j + i] = LLVMConstInt(i32t, shuffle, 0); in lp_build_swizzle_aos() 407 shuffle in lp_build_swizzle_aos() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | des.c | 108 * This table contains the results of applying both the S-box and P-shuffle. 179 static uint64_t shuffle(uint64_t in, const uint8_t *shuffle, int shuffle_len) in shuffle() argument 184 res += res + ((in >> *shuffle++) & 1); in shuffle() 188 static uint64_t shuffle_inv(uint64_t in, const uint8_t *shuffle, int shuffle_len) in shuffle_inv() argument 192 shuffle += shuffle_len - 1; in shuffle_inv() 194 res |= (in & 1) << *shuffle--; in shuffle_inv() 204 // rotate to get first part of E-shuffle in the lowest 6 bits in f_func() 217 // get next 6 bits of E-shuffle and round key k into the lowest bits in f_func() 222 out = shuffle(ou in f_func() [all...] |
/third_party/skia/src/core/ |
H A D | SkM44.cpp | 149 sk4f c0 = skvx::shuffle<0,1,0,1>(sk2f::Load(mat + 0)) * flip; in map_rect_affine() 150 sk4f c1 = skvx::shuffle<0,1,0,1>(sk2f::Load(mat + 4)) * flip; in map_rect_affine() 151 sk4f c3 = skvx::shuffle<0,1,0,1>(sk2f::Load(mat + 12)); in map_rect_affine() 187 return flip * skvx::shuffle<0,1,0,1>(p0) / w0; in map_rect_perspective() 193 sk2f c = (t * skvx::shuffle<0,1>(p) + (1.f - t) * skvx::shuffle<0,1>(p0)) / in map_rect_perspective() 196 return flip * skvx::shuffle<0,1,0,1>(c); in map_rect_perspective()
|
/third_party/nghttp2/tests/ |
H A D | nghttp2_map_test.c | 97 static void shuffle(int *a, int n) { in shuffle() function 129 shuffle(order, NUM_ENT); in test_nghttp2_map_functional() 140 shuffle(order, NUM_ENT); in test_nghttp2_map_functional()
|
/third_party/skia/bench/ |
H A D | ImageCacheBudgetBench.cpp | 72 ImageCacheBudgetBench(int budgetSize, bool shuffle) in ImageCacheBudgetBench() argument 74 , fShuffle(shuffle) in ImageCacheBudgetBench() 80 (shuffle ? "_shuffle" : "")); in ImageCacheBudgetBench()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | Reactor.cpp | 1488 int shuffle[16] = { 1507 return As<Byte8>(Nucleus::createShuffleVector(x.value(), x.value(), shuffle)); 1513 int shuffle[16] = { 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7 }; // Real type is v16i8 1514 return As<Short4>(Nucleus::createShuffleVector(x.value(), x.value(), shuffle)); 1525 int shuffle[16] = { 0, 16, 1, 17, 2, 18, 3, 19, 4, 20, 5, 21, 6, 22, 7, 23 }; // Real type is v16i8 1526 return As<Short4>(Nucleus::createShuffleVector(x.value(), y.value(), shuffle)); 1532 int shuffle[16] = { 0, 16, 1, 17, 2, 18, 3, 19, 4, 20, 5, 21, 6, 22, 7, 23 }; // Real type is v16i8 1533 auto lowHigh = RValue<Byte16>(Nucleus::createShuffleVector(x.value(), y.value(), shuffle)); 1693 int shuffle[16] = { 0, 16, 1, 17, 2, 18, 3, 19, 4, 20, 5, 21, 6, 22, 7, 23 }; // Real type is v16i8 1694 return As<Short4>(Nucleus::createShuffleVector(x.value(), y.value(), shuffle)); [all...] |
/third_party/python/Lib/test/ |
H A D | test_statistics.py | 1061 random.shuffle(data) 1083 random.shuffle(data) 1364 random.shuffle(data) 1370 random.shuffle(data) 1377 random.shuffle(data) 1384 random.shuffle(data) 1490 random.shuffle(data) 1496 random.shuffle(data) 1510 random.shuffle(data) 1513 random.shuffle(dat [all...] |