110 | 449k | } Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) unsigned int jxl::N_AVX2::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 63.4k | uint32_t* JXL_RESTRICT out) { | 45 | 63.4k | const HWY_FULL(uint32_t) du; | 46 | 63.4k | const HWY_FULL(float) df; | 47 | 63.4k | const auto kZero = Zero(du); | 48 | 63.4k | const auto kSplit = Set(du, 1 << E); | 49 | 63.4k | const auto kExpOffset = Set(du, 127); | 50 | 63.4k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 63.4k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 63.4k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 63.4k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 63.4k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 63.4k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 63.4k | constexpr size_t kLargeShiftVal = 10; | 57 | 63.4k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 63.4k | auto extra_bits = kZero; | 60 | 63.4k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 6.22M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 6.16M | const auto val = LoadU(du, values + i); | 63 | 6.16M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 6.16M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 6.16M | const auto not_literal = Ge(val, kSplit); | 66 | 6.16M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 6.16M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 6.16M | const auto l = And(val, kMaskL); | 69 | 6.16M | const auto exp = ShiftRight<23>(b); | 70 | 6.16M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 6.16M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 6.16M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 6.16M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 6.16M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 6.16M | const auto d = And(m, kMaskM); | 76 | 6.16M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 6.16M | const auto c = Or(a, l); | 78 | 6.16M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 6.16M | const auto t = Or(c, d); | 80 | 6.16M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 6.16M | Store(t_fixed, du, out + i); | 82 | 6.16M | } | 83 | 63.4k | if (last_full < len) { | 84 | 54.8k | const auto stop = Set(du, len); | 85 | 54.8k | const auto fence = Iota(du, last_full); | 86 | 54.8k | const auto take = Lt(fence, stop); | 87 | 54.8k | const auto val = LoadU(du, values + last_full); | 88 | 54.8k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 54.8k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 54.8k | const auto not_literal = Ge(val, kSplit); | 91 | 54.8k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 54.8k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 54.8k | const auto l = And(val, kMaskL); | 94 | 54.8k | const auto exp = ShiftRight<23>(b); | 95 | 54.8k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 54.8k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 54.8k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 54.8k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 54.8k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 54.8k | const auto d = And(m, kMaskM); | 101 | 54.8k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 54.8k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 54.8k | const auto c = Or(a, l); | 104 | 54.8k | extra_bits = Add(extra_bits, eb_masked); | 105 | 54.8k | const auto t = Or(c, d); | 106 | 54.8k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 54.8k | Store(t_fixed, du, out + last_full); | 108 | 54.8k | } | 109 | 63.4k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 63.4k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 62.7k | uint32_t* JXL_RESTRICT out) { | 45 | 62.7k | const HWY_FULL(uint32_t) du; | 46 | 62.7k | const HWY_FULL(float) df; | 47 | 62.7k | const auto kZero = Zero(du); | 48 | 62.7k | const auto kSplit = Set(du, 1 << E); | 49 | 62.7k | const auto kExpOffset = Set(du, 127); | 50 | 62.7k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 62.7k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 62.7k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 62.7k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 62.7k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 62.7k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 62.7k | constexpr size_t kLargeShiftVal = 10; | 57 | 62.7k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 62.7k | auto extra_bits = kZero; | 60 | 62.7k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 6.22M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 6.15M | const auto val = LoadU(du, values + i); | 63 | 6.15M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 6.15M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 6.15M | const auto not_literal = Ge(val, kSplit); | 66 | 6.15M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 6.15M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 6.15M | const auto l = And(val, kMaskL); | 69 | 6.15M | const auto exp = ShiftRight<23>(b); | 70 | 6.15M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 6.15M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 6.15M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 6.15M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 6.15M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 6.15M | const auto d = And(m, kMaskM); | 76 | 6.15M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 6.15M | const auto c = Or(a, l); | 78 | 6.15M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 6.15M | const auto t = Or(c, d); | 80 | 6.15M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 6.15M | Store(t_fixed, du, out + i); | 82 | 6.15M | } | 83 | 62.7k | if (last_full < len) { | 84 | 54.1k | const auto stop = Set(du, len); | 85 | 54.1k | const auto fence = Iota(du, last_full); | 86 | 54.1k | const auto take = Lt(fence, stop); | 87 | 54.1k | const auto val = LoadU(du, values + last_full); | 88 | 54.1k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 54.1k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 54.1k | const auto not_literal = Ge(val, kSplit); | 91 | 54.1k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 54.1k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 54.1k | const auto l = And(val, kMaskL); | 94 | 54.1k | const auto exp = ShiftRight<23>(b); | 95 | 54.1k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 54.1k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 54.1k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 54.1k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 54.1k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 54.1k | const auto d = And(m, kMaskM); | 101 | 54.1k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 54.1k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 54.1k | const auto c = Or(a, l); | 104 | 54.1k | extra_bits = Add(extra_bits, eb_masked); | 105 | 54.1k | const auto t = Or(c, d); | 106 | 54.1k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 54.1k | Store(t_fixed, du, out + last_full); | 108 | 54.1k | } | 109 | 62.7k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 62.7k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 62.7k | uint32_t* JXL_RESTRICT out) { | 45 | 62.7k | const HWY_FULL(uint32_t) du; | 46 | 62.7k | const HWY_FULL(float) df; | 47 | 62.7k | const auto kZero = Zero(du); | 48 | 62.7k | const auto kSplit = Set(du, 1 << E); | 49 | 62.7k | const auto kExpOffset = Set(du, 127); | 50 | 62.7k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 62.7k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 62.7k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 62.7k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 62.7k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 62.7k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 62.7k | constexpr size_t kLargeShiftVal = 10; | 57 | 62.7k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 62.7k | auto extra_bits = kZero; | 60 | 62.7k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 6.22M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 6.15M | const auto val = LoadU(du, values + i); | 63 | 6.15M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 6.15M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 6.15M | const auto not_literal = Ge(val, kSplit); | 66 | 6.15M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 6.15M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 6.15M | const auto l = And(val, kMaskL); | 69 | 6.15M | const auto exp = ShiftRight<23>(b); | 70 | 6.15M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 6.15M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 6.15M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 6.15M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 6.15M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 6.15M | const auto d = And(m, kMaskM); | 76 | 6.15M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 6.15M | const auto c = Or(a, l); | 78 | 6.15M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 6.15M | const auto t = Or(c, d); | 80 | 6.15M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 6.15M | Store(t_fixed, du, out + i); | 82 | 6.15M | } | 83 | 62.7k | if (last_full < len) { | 84 | 54.1k | const auto stop = Set(du, len); | 85 | 54.1k | const auto fence = Iota(du, last_full); | 86 | 54.1k | const auto take = Lt(fence, stop); | 87 | 54.1k | const auto val = LoadU(du, values + last_full); | 88 | 54.1k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 54.1k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 54.1k | const auto not_literal = Ge(val, kSplit); | 91 | 54.1k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 54.1k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 54.1k | const auto l = And(val, kMaskL); | 94 | 54.1k | const auto exp = ShiftRight<23>(b); | 95 | 54.1k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 54.1k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 54.1k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 54.1k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 54.1k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 54.1k | const auto d = And(m, kMaskM); | 101 | 54.1k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 54.1k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 54.1k | const auto c = Or(a, l); | 104 | 54.1k | extra_bits = Add(extra_bits, eb_masked); | 105 | 54.1k | const auto t = Or(c, d); | 106 | 54.1k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 54.1k | Store(t_fixed, du, out + last_full); | 108 | 54.1k | } | 109 | 62.7k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 62.7k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 62.7k | uint32_t* JXL_RESTRICT out) { | 45 | 62.7k | const HWY_FULL(uint32_t) du; | 46 | 62.7k | const HWY_FULL(float) df; | 47 | 62.7k | const auto kZero = Zero(du); | 48 | 62.7k | const auto kSplit = Set(du, 1 << E); | 49 | 62.7k | const auto kExpOffset = Set(du, 127); | 50 | 62.7k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 62.7k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 62.7k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 62.7k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 62.7k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 62.7k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 62.7k | constexpr size_t kLargeShiftVal = 10; | 57 | 62.7k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 62.7k | auto extra_bits = kZero; | 60 | 62.7k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 6.22M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 6.15M | const auto val = LoadU(du, values + i); | 63 | 6.15M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 6.15M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 6.15M | const auto not_literal = Ge(val, kSplit); | 66 | 6.15M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 6.15M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 6.15M | const auto l = And(val, kMaskL); | 69 | 6.15M | const auto exp = ShiftRight<23>(b); | 70 | 6.15M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 6.15M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 6.15M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 6.15M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 6.15M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 6.15M | const auto d = And(m, kMaskM); | 76 | 6.15M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 6.15M | const auto c = Or(a, l); | 78 | 6.15M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 6.15M | const auto t = Or(c, d); | 80 | 6.15M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 6.15M | Store(t_fixed, du, out + i); | 82 | 6.15M | } | 83 | 62.7k | if (last_full < len) { | 84 | 54.1k | const auto stop = Set(du, len); | 85 | 54.1k | const auto fence = Iota(du, last_full); | 86 | 54.1k | const auto take = Lt(fence, stop); | 87 | 54.1k | const auto val = LoadU(du, values + last_full); | 88 | 54.1k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 54.1k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 54.1k | const auto not_literal = Ge(val, kSplit); | 91 | 54.1k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 54.1k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 54.1k | const auto l = And(val, kMaskL); | 94 | 54.1k | const auto exp = ShiftRight<23>(b); | 95 | 54.1k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 54.1k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 54.1k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 54.1k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 54.1k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 54.1k | const auto d = And(m, kMaskM); | 101 | 54.1k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 54.1k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 54.1k | const auto c = Or(a, l); | 104 | 54.1k | extra_bits = Add(extra_bits, eb_masked); | 105 | 54.1k | const auto t = Or(c, d); | 106 | 54.1k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 54.1k | Store(t_fixed, du, out + last_full); | 108 | 54.1k | } | 109 | 62.7k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 62.7k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.73k | uint32_t* JXL_RESTRICT out) { | 45 | 8.73k | const HWY_FULL(uint32_t) du; | 46 | 8.73k | const HWY_FULL(float) df; | 47 | 8.73k | const auto kZero = Zero(du); | 48 | 8.73k | const auto kSplit = Set(du, 1 << E); | 49 | 8.73k | const auto kExpOffset = Set(du, 127); | 50 | 8.73k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.73k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.73k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.73k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.73k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.73k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.73k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.73k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.73k | auto extra_bits = kZero; | 60 | 8.73k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.73k | if (last_full < len) { | 84 | 7.37k | const auto stop = Set(du, len); | 85 | 7.37k | const auto fence = Iota(du, last_full); | 86 | 7.37k | const auto take = Lt(fence, stop); | 87 | 7.37k | const auto val = LoadU(du, values + last_full); | 88 | 7.37k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.37k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.37k | const auto not_literal = Ge(val, kSplit); | 91 | 7.37k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.37k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.37k | const auto l = And(val, kMaskL); | 94 | 7.37k | const auto exp = ShiftRight<23>(b); | 95 | 7.37k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.37k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.37k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.37k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.37k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.37k | const auto d = And(m, kMaskM); | 101 | 7.37k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.37k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.37k | const auto c = Or(a, l); | 104 | 7.37k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.37k | const auto t = Or(c, d); | 106 | 7.37k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.37k | Store(t_fixed, du, out + last_full); | 108 | 7.37k | } | 109 | 8.73k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.73k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.73k | uint32_t* JXL_RESTRICT out) { | 45 | 8.73k | const HWY_FULL(uint32_t) du; | 46 | 8.73k | const HWY_FULL(float) df; | 47 | 8.73k | const auto kZero = Zero(du); | 48 | 8.73k | const auto kSplit = Set(du, 1 << E); | 49 | 8.73k | const auto kExpOffset = Set(du, 127); | 50 | 8.73k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.73k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.73k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.73k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.73k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.73k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.73k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.73k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.73k | auto extra_bits = kZero; | 60 | 8.73k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.73k | if (last_full < len) { | 84 | 7.37k | const auto stop = Set(du, len); | 85 | 7.37k | const auto fence = Iota(du, last_full); | 86 | 7.37k | const auto take = Lt(fence, stop); | 87 | 7.37k | const auto val = LoadU(du, values + last_full); | 88 | 7.37k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.37k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.37k | const auto not_literal = Ge(val, kSplit); | 91 | 7.37k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.37k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.37k | const auto l = And(val, kMaskL); | 94 | 7.37k | const auto exp = ShiftRight<23>(b); | 95 | 7.37k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.37k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.37k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.37k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.37k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.37k | const auto d = And(m, kMaskM); | 101 | 7.37k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.37k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.37k | const auto c = Or(a, l); | 104 | 7.37k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.37k | const auto t = Or(c, d); | 106 | 7.37k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.37k | Store(t_fixed, du, out + last_full); | 108 | 7.37k | } | 109 | 8.73k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.73k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.90k | uint32_t* JXL_RESTRICT out) { | 45 | 7.90k | const HWY_FULL(uint32_t) du; | 46 | 7.90k | const HWY_FULL(float) df; | 47 | 7.90k | const auto kZero = Zero(du); | 48 | 7.90k | const auto kSplit = Set(du, 1 << E); | 49 | 7.90k | const auto kExpOffset = Set(du, 127); | 50 | 7.90k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.90k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.90k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.90k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.90k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.90k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.90k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.90k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.90k | auto extra_bits = kZero; | 60 | 7.90k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 351k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 343k | const auto val = LoadU(du, values + i); | 63 | 343k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 343k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 343k | const auto not_literal = Ge(val, kSplit); | 66 | 343k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 343k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 343k | const auto l = And(val, kMaskL); | 69 | 343k | const auto exp = ShiftRight<23>(b); | 70 | 343k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 343k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 343k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 343k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 343k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 343k | const auto d = And(m, kMaskM); | 76 | 343k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 343k | const auto c = Or(a, l); | 78 | 343k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 343k | const auto t = Or(c, d); | 80 | 343k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 343k | Store(t_fixed, du, out + i); | 82 | 343k | } | 83 | 7.90k | if (last_full < len) { | 84 | 6.69k | const auto stop = Set(du, len); | 85 | 6.69k | const auto fence = Iota(du, last_full); | 86 | 6.69k | const auto take = Lt(fence, stop); | 87 | 6.69k | const auto val = LoadU(du, values + last_full); | 88 | 6.69k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.69k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.69k | const auto not_literal = Ge(val, kSplit); | 91 | 6.69k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.69k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.69k | const auto l = And(val, kMaskL); | 94 | 6.69k | const auto exp = ShiftRight<23>(b); | 95 | 6.69k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.69k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.69k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.69k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.69k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.69k | const auto d = And(m, kMaskM); | 101 | 6.69k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.69k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.69k | const auto c = Or(a, l); | 104 | 6.69k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.69k | const auto t = Or(c, d); | 106 | 6.69k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.69k | Store(t_fixed, du, out + last_full); | 108 | 6.69k | } | 109 | 7.90k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.90k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.90k | uint32_t* JXL_RESTRICT out) { | 45 | 7.90k | const HWY_FULL(uint32_t) du; | 46 | 7.90k | const HWY_FULL(float) df; | 47 | 7.90k | const auto kZero = Zero(du); | 48 | 7.90k | const auto kSplit = Set(du, 1 << E); | 49 | 7.90k | const auto kExpOffset = Set(du, 127); | 50 | 7.90k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.90k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.90k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.90k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.90k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.90k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.90k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.90k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.90k | auto extra_bits = kZero; | 60 | 7.90k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 351k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 343k | const auto val = LoadU(du, values + i); | 63 | 343k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 343k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 343k | const auto not_literal = Ge(val, kSplit); | 66 | 343k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 343k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 343k | const auto l = And(val, kMaskL); | 69 | 343k | const auto exp = ShiftRight<23>(b); | 70 | 343k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 343k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 343k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 343k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 343k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 343k | const auto d = And(m, kMaskM); | 76 | 343k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 343k | const auto c = Or(a, l); | 78 | 343k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 343k | const auto t = Or(c, d); | 80 | 343k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 343k | Store(t_fixed, du, out + i); | 82 | 343k | } | 83 | 7.90k | if (last_full < len) { | 84 | 6.69k | const auto stop = Set(du, len); | 85 | 6.69k | const auto fence = Iota(du, last_full); | 86 | 6.69k | const auto take = Lt(fence, stop); | 87 | 6.69k | const auto val = LoadU(du, values + last_full); | 88 | 6.69k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.69k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.69k | const auto not_literal = Ge(val, kSplit); | 91 | 6.69k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.69k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.69k | const auto l = And(val, kMaskL); | 94 | 6.69k | const auto exp = ShiftRight<23>(b); | 95 | 6.69k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.69k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.69k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.69k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.69k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.69k | const auto d = And(m, kMaskM); | 101 | 6.69k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.69k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.69k | const auto c = Or(a, l); | 104 | 6.69k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.69k | const auto t = Or(c, d); | 106 | 6.69k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.69k | Store(t_fixed, du, out + last_full); | 108 | 6.69k | } | 109 | 7.90k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.90k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 8.75k | uint32_t* JXL_RESTRICT out) { | 45 | 8.75k | const HWY_FULL(uint32_t) du; | 46 | 8.75k | const HWY_FULL(float) df; | 47 | 8.75k | const auto kZero = Zero(du); | 48 | 8.75k | const auto kSplit = Set(du, 1 << E); | 49 | 8.75k | const auto kExpOffset = Set(du, 127); | 50 | 8.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 8.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 8.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 8.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 8.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 8.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 8.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 8.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 8.75k | auto extra_bits = kZero; | 60 | 8.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 684k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 675k | const auto val = LoadU(du, values + i); | 63 | 675k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 675k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 675k | const auto not_literal = Ge(val, kSplit); | 66 | 675k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 675k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 675k | const auto l = And(val, kMaskL); | 69 | 675k | const auto exp = ShiftRight<23>(b); | 70 | 675k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 675k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 675k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 675k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 675k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 675k | const auto d = And(m, kMaskM); | 76 | 675k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 675k | const auto c = Or(a, l); | 78 | 675k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 675k | const auto t = Or(c, d); | 80 | 675k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 675k | Store(t_fixed, du, out + i); | 82 | 675k | } | 83 | 8.75k | if (last_full < len) { | 84 | 7.39k | const auto stop = Set(du, len); | 85 | 7.39k | const auto fence = Iota(du, last_full); | 86 | 7.39k | const auto take = Lt(fence, stop); | 87 | 7.39k | const auto val = LoadU(du, values + last_full); | 88 | 7.39k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 7.39k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 7.39k | const auto not_literal = Ge(val, kSplit); | 91 | 7.39k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 7.39k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 7.39k | const auto l = And(val, kMaskL); | 94 | 7.39k | const auto exp = ShiftRight<23>(b); | 95 | 7.39k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 7.39k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 7.39k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 7.39k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 7.39k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 7.39k | const auto d = And(m, kMaskM); | 101 | 7.39k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 7.39k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 7.39k | const auto c = Or(a, l); | 104 | 7.39k | extra_bits = Add(extra_bits, eb_masked); | 105 | 7.39k | const auto t = Or(c, d); | 106 | 7.39k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 7.39k | Store(t_fixed, du, out + last_full); | 108 | 7.39k | } | 109 | 8.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 8.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 6.73k | uint32_t* JXL_RESTRICT out) { | 45 | 6.73k | const HWY_FULL(uint32_t) du; | 46 | 6.73k | const HWY_FULL(float) df; | 47 | 6.73k | const auto kZero = Zero(du); | 48 | 6.73k | const auto kSplit = Set(du, 1 << E); | 49 | 6.73k | const auto kExpOffset = Set(du, 127); | 50 | 6.73k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 6.73k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 6.73k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 6.73k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 6.73k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 6.73k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 6.73k | constexpr size_t kLargeShiftVal = 10; | 57 | 6.73k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 6.73k | auto extra_bits = kZero; | 60 | 6.73k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 307k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 301k | const auto val = LoadU(du, values + i); | 63 | 301k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 301k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 301k | const auto not_literal = Ge(val, kSplit); | 66 | 301k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 301k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 301k | const auto l = And(val, kMaskL); | 69 | 301k | const auto exp = ShiftRight<23>(b); | 70 | 301k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 301k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 301k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 301k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 301k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 301k | const auto d = And(m, kMaskM); | 76 | 301k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 301k | const auto c = Or(a, l); | 78 | 301k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 301k | const auto t = Or(c, d); | 80 | 301k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 301k | Store(t_fixed, du, out + i); | 82 | 301k | } | 83 | 6.73k | if (last_full < len) { | 84 | 5.73k | const auto stop = Set(du, len); | 85 | 5.73k | const auto fence = Iota(du, last_full); | 86 | 5.73k | const auto take = Lt(fence, stop); | 87 | 5.73k | const auto val = LoadU(du, values + last_full); | 88 | 5.73k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 5.73k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 5.73k | const auto not_literal = Ge(val, kSplit); | 91 | 5.73k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 5.73k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 5.73k | const auto l = And(val, kMaskL); | 94 | 5.73k | const auto exp = ShiftRight<23>(b); | 95 | 5.73k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 5.73k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 5.73k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 5.73k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 5.73k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 5.73k | const auto d = And(m, kMaskM); | 101 | 5.73k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 5.73k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 5.73k | const auto c = Or(a, l); | 104 | 5.73k | extra_bits = Add(extra_bits, eb_masked); | 105 | 5.73k | const auto t = Or(c, d); | 106 | 5.73k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 5.73k | Store(t_fixed, du, out + last_full); | 108 | 5.73k | } | 109 | 6.73k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 6.73k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 6.73k | uint32_t* JXL_RESTRICT out) { | 45 | 6.73k | const HWY_FULL(uint32_t) du; | 46 | 6.73k | const HWY_FULL(float) df; | 47 | 6.73k | const auto kZero = Zero(du); | 48 | 6.73k | const auto kSplit = Set(du, 1 << E); | 49 | 6.73k | const auto kExpOffset = Set(du, 127); | 50 | 6.73k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 6.73k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 6.73k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 6.73k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 6.73k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 6.73k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 6.73k | constexpr size_t kLargeShiftVal = 10; | 57 | 6.73k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 6.73k | auto extra_bits = kZero; | 60 | 6.73k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 307k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 301k | const auto val = LoadU(du, values + i); | 63 | 301k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 301k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 301k | const auto not_literal = Ge(val, kSplit); | 66 | 301k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 301k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 301k | const auto l = And(val, kMaskL); | 69 | 301k | const auto exp = ShiftRight<23>(b); | 70 | 301k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 301k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 301k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 301k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 301k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 301k | const auto d = And(m, kMaskM); | 76 | 301k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 301k | const auto c = Or(a, l); | 78 | 301k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 301k | const auto t = Or(c, d); | 80 | 301k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 301k | Store(t_fixed, du, out + i); | 82 | 301k | } | 83 | 6.73k | if (last_full < len) { | 84 | 5.73k | const auto stop = Set(du, len); | 85 | 5.73k | const auto fence = Iota(du, last_full); | 86 | 5.73k | const auto take = Lt(fence, stop); | 87 | 5.73k | const auto val = LoadU(du, values + last_full); | 88 | 5.73k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 5.73k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 5.73k | const auto not_literal = Ge(val, kSplit); | 91 | 5.73k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 5.73k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 5.73k | const auto l = And(val, kMaskL); | 94 | 5.73k | const auto exp = ShiftRight<23>(b); | 95 | 5.73k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 5.73k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 5.73k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 5.73k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 5.73k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 5.73k | const auto d = And(m, kMaskM); | 101 | 5.73k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 5.73k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 5.73k | const auto c = Or(a, l); | 104 | 5.73k | extra_bits = Add(extra_bits, eb_masked); | 105 | 5.73k | const auto t = Or(c, d); | 106 | 5.73k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 5.73k | Store(t_fixed, du, out + last_full); | 108 | 5.73k | } | 109 | 6.73k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 6.73k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 6.73k | uint32_t* JXL_RESTRICT out) { | 45 | 6.73k | const HWY_FULL(uint32_t) du; | 46 | 6.73k | const HWY_FULL(float) df; | 47 | 6.73k | const auto kZero = Zero(du); | 48 | 6.73k | const auto kSplit = Set(du, 1 << E); | 49 | 6.73k | const auto kExpOffset = Set(du, 127); | 50 | 6.73k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 6.73k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 6.73k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 6.73k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 6.73k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 6.73k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 6.73k | constexpr size_t kLargeShiftVal = 10; | 57 | 6.73k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 6.73k | auto extra_bits = kZero; | 60 | 6.73k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 307k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 301k | const auto val = LoadU(du, values + i); | 63 | 301k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 301k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 301k | const auto not_literal = Ge(val, kSplit); | 66 | 301k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 301k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 301k | const auto l = And(val, kMaskL); | 69 | 301k | const auto exp = ShiftRight<23>(b); | 70 | 301k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 301k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 301k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 301k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 301k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 301k | const auto d = And(m, kMaskM); | 76 | 301k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 301k | const auto c = Or(a, l); | 78 | 301k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 301k | const auto t = Or(c, d); | 80 | 301k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 301k | Store(t_fixed, du, out + i); | 82 | 301k | } | 83 | 6.73k | if (last_full < len) { | 84 | 5.73k | const auto stop = Set(du, len); | 85 | 5.73k | const auto fence = Iota(du, last_full); | 86 | 5.73k | const auto take = Lt(fence, stop); | 87 | 5.73k | const auto val = LoadU(du, values + last_full); | 88 | 5.73k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 5.73k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 5.73k | const auto not_literal = Ge(val, kSplit); | 91 | 5.73k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 5.73k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 5.73k | const auto l = And(val, kMaskL); | 94 | 5.73k | const auto exp = ShiftRight<23>(b); | 95 | 5.73k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 5.73k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 5.73k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 5.73k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 5.73k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 5.73k | const auto d = And(m, kMaskM); | 101 | 5.73k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 5.73k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 5.73k | const auto c = Or(a, l); | 104 | 5.73k | extra_bits = Add(extra_bits, eb_masked); | 105 | 5.73k | const auto t = Or(c, d); | 106 | 5.73k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 5.73k | Store(t_fixed, du, out + last_full); | 108 | 5.73k | } | 109 | 6.73k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 6.73k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 6.73k | uint32_t* JXL_RESTRICT out) { | 45 | 6.73k | const HWY_FULL(uint32_t) du; | 46 | 6.73k | const HWY_FULL(float) df; | 47 | 6.73k | const auto kZero = Zero(du); | 48 | 6.73k | const auto kSplit = Set(du, 1 << E); | 49 | 6.73k | const auto kExpOffset = Set(du, 127); | 50 | 6.73k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 6.73k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 6.73k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 6.73k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 6.73k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 6.73k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 6.73k | constexpr size_t kLargeShiftVal = 10; | 57 | 6.73k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 6.73k | auto extra_bits = kZero; | 60 | 6.73k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 307k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 301k | const auto val = LoadU(du, values + i); | 63 | 301k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 301k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 301k | const auto not_literal = Ge(val, kSplit); | 66 | 301k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 301k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 301k | const auto l = And(val, kMaskL); | 69 | 301k | const auto exp = ShiftRight<23>(b); | 70 | 301k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 301k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 301k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 301k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 301k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 301k | const auto d = And(m, kMaskM); | 76 | 301k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 301k | const auto c = Or(a, l); | 78 | 301k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 301k | const auto t = Or(c, d); | 80 | 301k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 301k | Store(t_fixed, du, out + i); | 82 | 301k | } | 83 | 6.73k | if (last_full < len) { | 84 | 5.73k | const auto stop = Set(du, len); | 85 | 5.73k | const auto fence = Iota(du, last_full); | 86 | 5.73k | const auto take = Lt(fence, stop); | 87 | 5.73k | const auto val = LoadU(du, values + last_full); | 88 | 5.73k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 5.73k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 5.73k | const auto not_literal = Ge(val, kSplit); | 91 | 5.73k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 5.73k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 5.73k | const auto l = And(val, kMaskL); | 94 | 5.73k | const auto exp = ShiftRight<23>(b); | 95 | 5.73k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 5.73k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 5.73k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 5.73k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 5.73k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 5.73k | const auto d = And(m, kMaskM); | 101 | 5.73k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 5.73k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 5.73k | const auto c = Or(a, l); | 104 | 5.73k | extra_bits = Add(extra_bits, eb_masked); | 105 | 5.73k | const auto t = Or(c, d); | 106 | 5.73k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 5.73k | Store(t_fixed, du, out + last_full); | 108 | 5.73k | } | 109 | 6.73k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 6.73k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 6.73k | uint32_t* JXL_RESTRICT out) { | 45 | 6.73k | const HWY_FULL(uint32_t) du; | 46 | 6.73k | const HWY_FULL(float) df; | 47 | 6.73k | const auto kZero = Zero(du); | 48 | 6.73k | const auto kSplit = Set(du, 1 << E); | 49 | 6.73k | const auto kExpOffset = Set(du, 127); | 50 | 6.73k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 6.73k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 6.73k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 6.73k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 6.73k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 6.73k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 6.73k | constexpr size_t kLargeShiftVal = 10; | 57 | 6.73k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 6.73k | auto extra_bits = kZero; | 60 | 6.73k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 307k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 301k | const auto val = LoadU(du, values + i); | 63 | 301k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 301k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 301k | const auto not_literal = Ge(val, kSplit); | 66 | 301k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 301k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 301k | const auto l = And(val, kMaskL); | 69 | 301k | const auto exp = ShiftRight<23>(b); | 70 | 301k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 301k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 301k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 301k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 301k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 301k | const auto d = And(m, kMaskM); | 76 | 301k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 301k | const auto c = Or(a, l); | 78 | 301k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 301k | const auto t = Or(c, d); | 80 | 301k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 301k | Store(t_fixed, du, out + i); | 82 | 301k | } | 83 | 6.73k | if (last_full < len) { | 84 | 5.73k | const auto stop = Set(du, len); | 85 | 5.73k | const auto fence = Iota(du, last_full); | 86 | 5.73k | const auto take = Lt(fence, stop); | 87 | 5.73k | const auto val = LoadU(du, values + last_full); | 88 | 5.73k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 5.73k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 5.73k | const auto not_literal = Ge(val, kSplit); | 91 | 5.73k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 5.73k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 5.73k | const auto l = And(val, kMaskL); | 94 | 5.73k | const auto exp = ShiftRight<23>(b); | 95 | 5.73k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 5.73k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 5.73k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 5.73k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 5.73k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 5.73k | const auto d = And(m, kMaskM); | 101 | 5.73k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 5.73k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 5.73k | const auto c = Or(a, l); | 104 | 5.73k | extra_bits = Add(extra_bits, eb_masked); | 105 | 5.73k | const auto t = Or(c, d); | 106 | 5.73k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 5.73k | Store(t_fixed, du, out + last_full); | 108 | 5.73k | } | 109 | 6.73k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 6.73k | } |
Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_ZEN4::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_AVX3_SPR::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE2::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) |