111 | 487k | } 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 | 45 | 80.9k | uint32_t* JXL_RESTRICT out) { | 46 | 80.9k | const HWY_FULL(uint32_t) du; | 47 | 80.9k | const HWY_FULL(float) df; | 48 | 80.9k | const auto kZero = Zero(du); | 49 | 80.9k | const auto kSplit = Set(du, 1 << E); | 50 | 80.9k | const auto kExpOffset = Set(du, 127); | 51 | 80.9k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 80.9k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 80.9k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 80.9k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 80.9k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 80.9k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 80.9k | constexpr size_t kLargeShiftVal = 10; | 58 | 80.9k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 80.9k | auto extra_bits = kZero; | 61 | 80.9k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 11.9M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 11.9M | const auto val = LoadU(du, values + i); | 64 | 11.9M | const auto is_large = Gt(val, kLargeThreshold); | 65 | 11.9M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 11.9M | const auto not_literal = Ge(val, kSplit); | 67 | 11.9M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 11.9M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 11.9M | const auto l = And(val, kMaskL); | 70 | 11.9M | const auto exp = ShiftRight<23>(b); | 71 | 11.9M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 11.9M | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 11.9M | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 11.9M | const auto m = ShiftRight<23 - M - L>(b); | 75 | 11.9M | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 11.9M | const auto d = And(m, kMaskM); | 77 | 11.9M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 11.9M | const auto c = Or(a, l); | 79 | 11.9M | extra_bits = Add(extra_bits, eb_fixed); | 80 | 11.9M | const auto t = Or(c, d); | 81 | 11.9M | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 11.9M | Store(t_fixed, du, out + i); | 83 | 11.9M | } | 84 | 80.9k | if (last_full < len) { | 85 | 70.0k | const auto stop = Set(du, len); | 86 | 70.0k | const auto fence = Iota(du, last_full); | 87 | 70.0k | const auto take = Lt(fence, stop); | 88 | 70.0k | const auto val = LoadU(du, values + last_full); | 89 | 70.0k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 70.0k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 70.0k | const auto not_literal = Ge(val, kSplit); | 92 | 70.0k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 70.0k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 70.0k | const auto l = And(val, kMaskL); | 95 | 70.0k | const auto exp = ShiftRight<23>(b); | 96 | 70.0k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 70.0k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 70.0k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 70.0k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 70.0k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 70.0k | const auto d = And(m, kMaskM); | 102 | 70.0k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 70.0k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 70.0k | const auto c = Or(a, l); | 105 | 70.0k | extra_bits = Add(extra_bits, eb_masked); | 106 | 70.0k | const auto t = Or(c, d); | 107 | 70.0k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 70.0k | Store(t_fixed, du, out + last_full); | 109 | 70.0k | } | 110 | 80.9k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 80.9k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 80.0k | uint32_t* JXL_RESTRICT out) { | 46 | 80.0k | const HWY_FULL(uint32_t) du; | 47 | 80.0k | const HWY_FULL(float) df; | 48 | 80.0k | const auto kZero = Zero(du); | 49 | 80.0k | const auto kSplit = Set(du, 1 << E); | 50 | 80.0k | const auto kExpOffset = Set(du, 127); | 51 | 80.0k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 80.0k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 80.0k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 80.0k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 80.0k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 80.0k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 80.0k | constexpr size_t kLargeShiftVal = 10; | 58 | 80.0k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 80.0k | auto extra_bits = kZero; | 61 | 80.0k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 11.9M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 11.9M | const auto val = LoadU(du, values + i); | 64 | 11.9M | const auto is_large = Gt(val, kLargeThreshold); | 65 | 11.9M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 11.9M | const auto not_literal = Ge(val, kSplit); | 67 | 11.9M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 11.9M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 11.9M | const auto l = And(val, kMaskL); | 70 | 11.9M | const auto exp = ShiftRight<23>(b); | 71 | 11.9M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 11.9M | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 11.9M | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 11.9M | const auto m = ShiftRight<23 - M - L>(b); | 75 | 11.9M | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 11.9M | const auto d = And(m, kMaskM); | 77 | 11.9M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 11.9M | const auto c = Or(a, l); | 79 | 11.9M | extra_bits = Add(extra_bits, eb_fixed); | 80 | 11.9M | const auto t = Or(c, d); | 81 | 11.9M | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 11.9M | Store(t_fixed, du, out + i); | 83 | 11.9M | } | 84 | 80.0k | if (last_full < len) { | 85 | 69.3k | const auto stop = Set(du, len); | 86 | 69.3k | const auto fence = Iota(du, last_full); | 87 | 69.3k | const auto take = Lt(fence, stop); | 88 | 69.3k | const auto val = LoadU(du, values + last_full); | 89 | 69.3k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 69.3k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 69.3k | const auto not_literal = Ge(val, kSplit); | 92 | 69.3k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 69.3k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 69.3k | const auto l = And(val, kMaskL); | 95 | 69.3k | const auto exp = ShiftRight<23>(b); | 96 | 69.3k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 69.3k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 69.3k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 69.3k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 69.3k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 69.3k | const auto d = And(m, kMaskM); | 102 | 69.3k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 69.3k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 69.3k | const auto c = Or(a, l); | 105 | 69.3k | extra_bits = Add(extra_bits, eb_masked); | 106 | 69.3k | const auto t = Or(c, d); | 107 | 69.3k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 69.3k | Store(t_fixed, du, out + last_full); | 109 | 69.3k | } | 110 | 80.0k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 80.0k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 80.0k | uint32_t* JXL_RESTRICT out) { | 46 | 80.0k | const HWY_FULL(uint32_t) du; | 47 | 80.0k | const HWY_FULL(float) df; | 48 | 80.0k | const auto kZero = Zero(du); | 49 | 80.0k | const auto kSplit = Set(du, 1 << E); | 50 | 80.0k | const auto kExpOffset = Set(du, 127); | 51 | 80.0k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 80.0k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 80.0k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 80.0k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 80.0k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 80.0k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 80.0k | constexpr size_t kLargeShiftVal = 10; | 58 | 80.0k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 80.0k | auto extra_bits = kZero; | 61 | 80.0k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 11.9M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 11.9M | const auto val = LoadU(du, values + i); | 64 | 11.9M | const auto is_large = Gt(val, kLargeThreshold); | 65 | 11.9M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 11.9M | const auto not_literal = Ge(val, kSplit); | 67 | 11.9M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 11.9M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 11.9M | const auto l = And(val, kMaskL); | 70 | 11.9M | const auto exp = ShiftRight<23>(b); | 71 | 11.9M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 11.9M | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 11.9M | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 11.9M | const auto m = ShiftRight<23 - M - L>(b); | 75 | 11.9M | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 11.9M | const auto d = And(m, kMaskM); | 77 | 11.9M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 11.9M | const auto c = Or(a, l); | 79 | 11.9M | extra_bits = Add(extra_bits, eb_fixed); | 80 | 11.9M | const auto t = Or(c, d); | 81 | 11.9M | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 11.9M | Store(t_fixed, du, out + i); | 83 | 11.9M | } | 84 | 80.0k | if (last_full < len) { | 85 | 69.3k | const auto stop = Set(du, len); | 86 | 69.3k | const auto fence = Iota(du, last_full); | 87 | 69.3k | const auto take = Lt(fence, stop); | 88 | 69.3k | const auto val = LoadU(du, values + last_full); | 89 | 69.3k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 69.3k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 69.3k | const auto not_literal = Ge(val, kSplit); | 92 | 69.3k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 69.3k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 69.3k | const auto l = And(val, kMaskL); | 95 | 69.3k | const auto exp = ShiftRight<23>(b); | 96 | 69.3k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 69.3k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 69.3k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 69.3k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 69.3k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 69.3k | const auto d = And(m, kMaskM); | 102 | 69.3k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 69.3k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 69.3k | const auto c = Or(a, l); | 105 | 69.3k | extra_bits = Add(extra_bits, eb_masked); | 106 | 69.3k | const auto t = Or(c, d); | 107 | 69.3k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 69.3k | Store(t_fixed, du, out + last_full); | 109 | 69.3k | } | 110 | 80.0k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 80.0k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 80.0k | uint32_t* JXL_RESTRICT out) { | 46 | 80.0k | const HWY_FULL(uint32_t) du; | 47 | 80.0k | const HWY_FULL(float) df; | 48 | 80.0k | const auto kZero = Zero(du); | 49 | 80.0k | const auto kSplit = Set(du, 1 << E); | 50 | 80.0k | const auto kExpOffset = Set(du, 127); | 51 | 80.0k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 80.0k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 80.0k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 80.0k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 80.0k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 80.0k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 80.0k | constexpr size_t kLargeShiftVal = 10; | 58 | 80.0k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 80.0k | auto extra_bits = kZero; | 61 | 80.0k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 11.9M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 11.9M | const auto val = LoadU(du, values + i); | 64 | 11.9M | const auto is_large = Gt(val, kLargeThreshold); | 65 | 11.9M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 11.9M | const auto not_literal = Ge(val, kSplit); | 67 | 11.9M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 11.9M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 11.9M | const auto l = And(val, kMaskL); | 70 | 11.9M | const auto exp = ShiftRight<23>(b); | 71 | 11.9M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 11.9M | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 11.9M | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 11.9M | const auto m = ShiftRight<23 - M - L>(b); | 75 | 11.9M | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 11.9M | const auto d = And(m, kMaskM); | 77 | 11.9M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 11.9M | const auto c = Or(a, l); | 79 | 11.9M | extra_bits = Add(extra_bits, eb_fixed); | 80 | 11.9M | const auto t = Or(c, d); | 81 | 11.9M | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 11.9M | Store(t_fixed, du, out + i); | 83 | 11.9M | } | 84 | 80.0k | if (last_full < len) { | 85 | 69.3k | const auto stop = Set(du, len); | 86 | 69.3k | const auto fence = Iota(du, last_full); | 87 | 69.3k | const auto take = Lt(fence, stop); | 88 | 69.3k | const auto val = LoadU(du, values + last_full); | 89 | 69.3k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 69.3k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 69.3k | const auto not_literal = Ge(val, kSplit); | 92 | 69.3k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 69.3k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 69.3k | const auto l = And(val, kMaskL); | 95 | 69.3k | const auto exp = ShiftRight<23>(b); | 96 | 69.3k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 69.3k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 69.3k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 69.3k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 69.3k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 69.3k | const auto d = And(m, kMaskM); | 102 | 69.3k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 69.3k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 69.3k | const auto c = Or(a, l); | 105 | 69.3k | extra_bits = Add(extra_bits, eb_masked); | 106 | 69.3k | const auto t = Or(c, d); | 107 | 69.3k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 69.3k | Store(t_fixed, du, out + last_full); | 109 | 69.3k | } | 110 | 80.0k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 80.0k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.36k | uint32_t* JXL_RESTRICT out) { | 46 | 7.36k | const HWY_FULL(uint32_t) du; | 47 | 7.36k | const HWY_FULL(float) df; | 48 | 7.36k | const auto kZero = Zero(du); | 49 | 7.36k | const auto kSplit = Set(du, 1 << E); | 50 | 7.36k | const auto kExpOffset = Set(du, 127); | 51 | 7.36k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.36k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.36k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.36k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.36k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.36k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.36k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.36k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.36k | auto extra_bits = kZero; | 61 | 7.36k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 690k | const auto val = LoadU(du, values + i); | 64 | 690k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 690k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 690k | const auto not_literal = Ge(val, kSplit); | 67 | 690k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 690k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 690k | const auto l = And(val, kMaskL); | 70 | 690k | const auto exp = ShiftRight<23>(b); | 71 | 690k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 690k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 690k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 690k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 690k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 690k | const auto d = And(m, kMaskM); | 77 | 690k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 690k | const auto c = Or(a, l); | 79 | 690k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 690k | const auto t = Or(c, d); | 81 | 690k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 690k | Store(t_fixed, du, out + i); | 83 | 690k | } | 84 | 7.36k | if (last_full < len) { | 85 | 6.27k | const auto stop = Set(du, len); | 86 | 6.27k | const auto fence = Iota(du, last_full); | 87 | 6.27k | const auto take = Lt(fence, stop); | 88 | 6.27k | const auto val = LoadU(du, values + last_full); | 89 | 6.27k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.27k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.27k | const auto not_literal = Ge(val, kSplit); | 92 | 6.27k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.27k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.27k | const auto l = And(val, kMaskL); | 95 | 6.27k | const auto exp = ShiftRight<23>(b); | 96 | 6.27k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.27k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.27k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.27k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.27k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.27k | const auto d = And(m, kMaskM); | 102 | 6.27k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.27k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.27k | const auto c = Or(a, l); | 105 | 6.27k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.27k | const auto t = Or(c, d); | 107 | 6.27k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.27k | Store(t_fixed, du, out + last_full); | 109 | 6.27k | } | 110 | 7.36k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.36k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.36k | uint32_t* JXL_RESTRICT out) { | 46 | 7.36k | const HWY_FULL(uint32_t) du; | 47 | 7.36k | const HWY_FULL(float) df; | 48 | 7.36k | const auto kZero = Zero(du); | 49 | 7.36k | const auto kSplit = Set(du, 1 << E); | 50 | 7.36k | const auto kExpOffset = Set(du, 127); | 51 | 7.36k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.36k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.36k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.36k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.36k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.36k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.36k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.36k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.36k | auto extra_bits = kZero; | 61 | 7.36k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 690k | const auto val = LoadU(du, values + i); | 64 | 690k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 690k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 690k | const auto not_literal = Ge(val, kSplit); | 67 | 690k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 690k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 690k | const auto l = And(val, kMaskL); | 70 | 690k | const auto exp = ShiftRight<23>(b); | 71 | 690k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 690k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 690k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 690k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 690k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 690k | const auto d = And(m, kMaskM); | 77 | 690k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 690k | const auto c = Or(a, l); | 79 | 690k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 690k | const auto t = Or(c, d); | 81 | 690k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 690k | Store(t_fixed, du, out + i); | 83 | 690k | } | 84 | 7.36k | if (last_full < len) { | 85 | 6.27k | const auto stop = Set(du, len); | 86 | 6.27k | const auto fence = Iota(du, last_full); | 87 | 6.27k | const auto take = Lt(fence, stop); | 88 | 6.27k | const auto val = LoadU(du, values + last_full); | 89 | 6.27k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.27k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.27k | const auto not_literal = Ge(val, kSplit); | 92 | 6.27k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.27k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.27k | const auto l = And(val, kMaskL); | 95 | 6.27k | const auto exp = ShiftRight<23>(b); | 96 | 6.27k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.27k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.27k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.27k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.27k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.27k | const auto d = And(m, kMaskM); | 102 | 6.27k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.27k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.27k | const auto c = Or(a, l); | 105 | 6.27k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.27k | const auto t = Or(c, d); | 107 | 6.27k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.27k | Store(t_fixed, du, out + last_full); | 109 | 6.27k | } | 110 | 7.36k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.36k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 6.46k | uint32_t* JXL_RESTRICT out) { | 46 | 6.46k | const HWY_FULL(uint32_t) du; | 47 | 6.46k | const HWY_FULL(float) df; | 48 | 6.46k | const auto kZero = Zero(du); | 49 | 6.46k | const auto kSplit = Set(du, 1 << E); | 50 | 6.46k | const auto kExpOffset = Set(du, 127); | 51 | 6.46k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 6.46k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 6.46k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 6.46k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 6.46k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 6.46k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 6.46k | constexpr size_t kLargeShiftVal = 10; | 58 | 6.46k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 6.46k | auto extra_bits = kZero; | 61 | 6.46k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 366k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 359k | const auto val = LoadU(du, values + i); | 64 | 359k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 359k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 359k | const auto not_literal = Ge(val, kSplit); | 67 | 359k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 359k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 359k | const auto l = And(val, kMaskL); | 70 | 359k | const auto exp = ShiftRight<23>(b); | 71 | 359k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 359k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 359k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 359k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 359k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 359k | const auto d = And(m, kMaskM); | 77 | 359k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 359k | const auto c = Or(a, l); | 79 | 359k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 359k | const auto t = Or(c, d); | 81 | 359k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 359k | Store(t_fixed, du, out + i); | 83 | 359k | } | 84 | 6.46k | if (last_full < len) { | 85 | 5.53k | const auto stop = Set(du, len); | 86 | 5.53k | const auto fence = Iota(du, last_full); | 87 | 5.53k | const auto take = Lt(fence, stop); | 88 | 5.53k | const auto val = LoadU(du, values + last_full); | 89 | 5.53k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 5.53k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 5.53k | const auto not_literal = Ge(val, kSplit); | 92 | 5.53k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 5.53k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 5.53k | const auto l = And(val, kMaskL); | 95 | 5.53k | const auto exp = ShiftRight<23>(b); | 96 | 5.53k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 5.53k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 5.53k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 5.53k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 5.53k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 5.53k | const auto d = And(m, kMaskM); | 102 | 5.53k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 5.53k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 5.53k | const auto c = Or(a, l); | 105 | 5.53k | extra_bits = Add(extra_bits, eb_masked); | 106 | 5.53k | const auto t = Or(c, d); | 107 | 5.53k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 5.53k | Store(t_fixed, du, out + last_full); | 109 | 5.53k | } | 110 | 6.46k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 6.46k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 6.46k | uint32_t* JXL_RESTRICT out) { | 46 | 6.46k | const HWY_FULL(uint32_t) du; | 47 | 6.46k | const HWY_FULL(float) df; | 48 | 6.46k | const auto kZero = Zero(du); | 49 | 6.46k | const auto kSplit = Set(du, 1 << E); | 50 | 6.46k | const auto kExpOffset = Set(du, 127); | 51 | 6.46k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 6.46k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 6.46k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 6.46k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 6.46k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 6.46k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 6.46k | constexpr size_t kLargeShiftVal = 10; | 58 | 6.46k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 6.46k | auto extra_bits = kZero; | 61 | 6.46k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 366k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 359k | const auto val = LoadU(du, values + i); | 64 | 359k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 359k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 359k | const auto not_literal = Ge(val, kSplit); | 67 | 359k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 359k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 359k | const auto l = And(val, kMaskL); | 70 | 359k | const auto exp = ShiftRight<23>(b); | 71 | 359k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 359k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 359k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 359k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 359k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 359k | const auto d = And(m, kMaskM); | 77 | 359k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 359k | const auto c = Or(a, l); | 79 | 359k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 359k | const auto t = Or(c, d); | 81 | 359k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 359k | Store(t_fixed, du, out + i); | 83 | 359k | } | 84 | 6.46k | if (last_full < len) { | 85 | 5.53k | const auto stop = Set(du, len); | 86 | 5.53k | const auto fence = Iota(du, last_full); | 87 | 5.53k | const auto take = Lt(fence, stop); | 88 | 5.53k | const auto val = LoadU(du, values + last_full); | 89 | 5.53k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 5.53k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 5.53k | const auto not_literal = Ge(val, kSplit); | 92 | 5.53k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 5.53k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 5.53k | const auto l = And(val, kMaskL); | 95 | 5.53k | const auto exp = ShiftRight<23>(b); | 96 | 5.53k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 5.53k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 5.53k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 5.53k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 5.53k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 5.53k | const auto d = And(m, kMaskM); | 102 | 5.53k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 5.53k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 5.53k | const auto c = Or(a, l); | 105 | 5.53k | extra_bits = Add(extra_bits, eb_masked); | 106 | 5.53k | const auto t = Or(c, d); | 107 | 5.53k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 5.53k | Store(t_fixed, du, out + last_full); | 109 | 5.53k | } | 110 | 6.46k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 6.46k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 7.37k | uint32_t* JXL_RESTRICT out) { | 46 | 7.37k | const HWY_FULL(uint32_t) du; | 47 | 7.37k | const HWY_FULL(float) df; | 48 | 7.37k | const auto kZero = Zero(du); | 49 | 7.37k | const auto kSplit = Set(du, 1 << E); | 50 | 7.37k | const auto kExpOffset = Set(du, 127); | 51 | 7.37k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 7.37k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 7.37k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 7.37k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 7.37k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 7.37k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 7.37k | constexpr size_t kLargeShiftVal = 10; | 58 | 7.37k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 7.37k | auto extra_bits = kZero; | 61 | 7.37k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 698k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 691k | const auto val = LoadU(du, values + i); | 64 | 691k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 691k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 691k | const auto not_literal = Ge(val, kSplit); | 67 | 691k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 691k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 691k | const auto l = And(val, kMaskL); | 70 | 691k | const auto exp = ShiftRight<23>(b); | 71 | 691k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 691k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 691k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 691k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 691k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 691k | const auto d = And(m, kMaskM); | 77 | 691k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 691k | const auto c = Or(a, l); | 79 | 691k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 691k | const auto t = Or(c, d); | 81 | 691k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 691k | Store(t_fixed, du, out + i); | 83 | 691k | } | 84 | 7.37k | if (last_full < len) { | 85 | 6.28k | const auto stop = Set(du, len); | 86 | 6.28k | const auto fence = Iota(du, last_full); | 87 | 6.28k | const auto take = Lt(fence, stop); | 88 | 6.28k | const auto val = LoadU(du, values + last_full); | 89 | 6.28k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 6.28k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 6.28k | const auto not_literal = Ge(val, kSplit); | 92 | 6.28k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 6.28k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 6.28k | const auto l = And(val, kMaskL); | 95 | 6.28k | const auto exp = ShiftRight<23>(b); | 96 | 6.28k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 6.28k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 6.28k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 6.28k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 6.28k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 6.28k | const auto d = And(m, kMaskM); | 102 | 6.28k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 6.28k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 6.28k | const auto c = Or(a, l); | 105 | 6.28k | extra_bits = Add(extra_bits, eb_masked); | 106 | 6.28k | const auto t = Or(c, d); | 107 | 6.28k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 6.28k | Store(t_fixed, du, out + last_full); | 109 | 6.28k | } | 110 | 7.37k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 7.37k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 5.56k | uint32_t* JXL_RESTRICT out) { | 46 | 5.56k | const HWY_FULL(uint32_t) du; | 47 | 5.56k | const HWY_FULL(float) df; | 48 | 5.56k | const auto kZero = Zero(du); | 49 | 5.56k | const auto kSplit = Set(du, 1 << E); | 50 | 5.56k | const auto kExpOffset = Set(du, 127); | 51 | 5.56k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 5.56k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 5.56k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 5.56k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 5.56k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 5.56k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 5.56k | constexpr size_t kLargeShiftVal = 10; | 58 | 5.56k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 5.56k | auto extra_bits = kZero; | 61 | 5.56k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 333k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 328k | const auto val = LoadU(du, values + i); | 64 | 328k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 328k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 328k | const auto not_literal = Ge(val, kSplit); | 67 | 328k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 328k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 328k | const auto l = And(val, kMaskL); | 70 | 328k | const auto exp = ShiftRight<23>(b); | 71 | 328k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 328k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 328k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 328k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 328k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 328k | const auto d = And(m, kMaskM); | 77 | 328k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 328k | const auto c = Or(a, l); | 79 | 328k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 328k | const auto t = Or(c, d); | 81 | 328k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 328k | Store(t_fixed, du, out + i); | 83 | 328k | } | 84 | 5.56k | if (last_full < len) { | 85 | 4.72k | const auto stop = Set(du, len); | 86 | 4.72k | const auto fence = Iota(du, last_full); | 87 | 4.72k | const auto take = Lt(fence, stop); | 88 | 4.72k | const auto val = LoadU(du, values + last_full); | 89 | 4.72k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 4.72k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 4.72k | const auto not_literal = Ge(val, kSplit); | 92 | 4.72k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 4.72k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 4.72k | const auto l = And(val, kMaskL); | 95 | 4.72k | const auto exp = ShiftRight<23>(b); | 96 | 4.72k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 4.72k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 4.72k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 4.72k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 4.72k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 4.72k | const auto d = And(m, kMaskM); | 102 | 4.72k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 4.72k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 4.72k | const auto c = Or(a, l); | 105 | 4.72k | extra_bits = Add(extra_bits, eb_masked); | 106 | 4.72k | const auto t = Or(c, d); | 107 | 4.72k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 4.72k | Store(t_fixed, du, out + last_full); | 109 | 4.72k | } | 110 | 5.56k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 5.56k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 5.56k | uint32_t* JXL_RESTRICT out) { | 46 | 5.56k | const HWY_FULL(uint32_t) du; | 47 | 5.56k | const HWY_FULL(float) df; | 48 | 5.56k | const auto kZero = Zero(du); | 49 | 5.56k | const auto kSplit = Set(du, 1 << E); | 50 | 5.56k | const auto kExpOffset = Set(du, 127); | 51 | 5.56k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 5.56k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 5.56k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 5.56k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 5.56k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 5.56k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 5.56k | constexpr size_t kLargeShiftVal = 10; | 58 | 5.56k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 5.56k | auto extra_bits = kZero; | 61 | 5.56k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 333k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 328k | const auto val = LoadU(du, values + i); | 64 | 328k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 328k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 328k | const auto not_literal = Ge(val, kSplit); | 67 | 328k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 328k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 328k | const auto l = And(val, kMaskL); | 70 | 328k | const auto exp = ShiftRight<23>(b); | 71 | 328k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 328k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 328k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 328k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 328k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 328k | const auto d = And(m, kMaskM); | 77 | 328k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 328k | const auto c = Or(a, l); | 79 | 328k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 328k | const auto t = Or(c, d); | 81 | 328k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 328k | Store(t_fixed, du, out + i); | 83 | 328k | } | 84 | 5.56k | if (last_full < len) { | 85 | 4.72k | const auto stop = Set(du, len); | 86 | 4.72k | const auto fence = Iota(du, last_full); | 87 | 4.72k | const auto take = Lt(fence, stop); | 88 | 4.72k | const auto val = LoadU(du, values + last_full); | 89 | 4.72k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 4.72k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 4.72k | const auto not_literal = Ge(val, kSplit); | 92 | 4.72k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 4.72k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 4.72k | const auto l = And(val, kMaskL); | 95 | 4.72k | const auto exp = ShiftRight<23>(b); | 96 | 4.72k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 4.72k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 4.72k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 4.72k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 4.72k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 4.72k | const auto d = And(m, kMaskM); | 102 | 4.72k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 4.72k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 4.72k | const auto c = Or(a, l); | 105 | 4.72k | extra_bits = Add(extra_bits, eb_masked); | 106 | 4.72k | const auto t = Or(c, d); | 107 | 4.72k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 4.72k | Store(t_fixed, du, out + last_full); | 109 | 4.72k | } | 110 | 5.56k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 5.56k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 5.56k | uint32_t* JXL_RESTRICT out) { | 46 | 5.56k | const HWY_FULL(uint32_t) du; | 47 | 5.56k | const HWY_FULL(float) df; | 48 | 5.56k | const auto kZero = Zero(du); | 49 | 5.56k | const auto kSplit = Set(du, 1 << E); | 50 | 5.56k | const auto kExpOffset = Set(du, 127); | 51 | 5.56k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 5.56k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 5.56k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 5.56k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 5.56k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 5.56k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 5.56k | constexpr size_t kLargeShiftVal = 10; | 58 | 5.56k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 5.56k | auto extra_bits = kZero; | 61 | 5.56k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 333k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 328k | const auto val = LoadU(du, values + i); | 64 | 328k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 328k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 328k | const auto not_literal = Ge(val, kSplit); | 67 | 328k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 328k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 328k | const auto l = And(val, kMaskL); | 70 | 328k | const auto exp = ShiftRight<23>(b); | 71 | 328k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 328k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 328k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 328k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 328k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 328k | const auto d = And(m, kMaskM); | 77 | 328k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 328k | const auto c = Or(a, l); | 79 | 328k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 328k | const auto t = Or(c, d); | 81 | 328k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 328k | Store(t_fixed, du, out + i); | 83 | 328k | } | 84 | 5.56k | if (last_full < len) { | 85 | 4.72k | const auto stop = Set(du, len); | 86 | 4.72k | const auto fence = Iota(du, last_full); | 87 | 4.72k | const auto take = Lt(fence, stop); | 88 | 4.72k | const auto val = LoadU(du, values + last_full); | 89 | 4.72k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 4.72k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 4.72k | const auto not_literal = Ge(val, kSplit); | 92 | 4.72k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 4.72k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 4.72k | const auto l = And(val, kMaskL); | 95 | 4.72k | const auto exp = ShiftRight<23>(b); | 96 | 4.72k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 4.72k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 4.72k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 4.72k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 4.72k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 4.72k | const auto d = And(m, kMaskM); | 102 | 4.72k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 4.72k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 4.72k | const auto c = Or(a, l); | 105 | 4.72k | extra_bits = Add(extra_bits, eb_masked); | 106 | 4.72k | const auto t = Or(c, d); | 107 | 4.72k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 4.72k | Store(t_fixed, du, out + last_full); | 109 | 4.72k | } | 110 | 5.56k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 5.56k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 5.56k | uint32_t* JXL_RESTRICT out) { | 46 | 5.56k | const HWY_FULL(uint32_t) du; | 47 | 5.56k | const HWY_FULL(float) df; | 48 | 5.56k | const auto kZero = Zero(du); | 49 | 5.56k | const auto kSplit = Set(du, 1 << E); | 50 | 5.56k | const auto kExpOffset = Set(du, 127); | 51 | 5.56k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 5.56k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 5.56k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 5.56k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 5.56k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 5.56k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 5.56k | constexpr size_t kLargeShiftVal = 10; | 58 | 5.56k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 5.56k | auto extra_bits = kZero; | 61 | 5.56k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 333k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 328k | const auto val = LoadU(du, values + i); | 64 | 328k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 328k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 328k | const auto not_literal = Ge(val, kSplit); | 67 | 328k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 328k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 328k | const auto l = And(val, kMaskL); | 70 | 328k | const auto exp = ShiftRight<23>(b); | 71 | 328k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 328k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 328k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 328k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 328k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 328k | const auto d = And(m, kMaskM); | 77 | 328k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 328k | const auto c = Or(a, l); | 79 | 328k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 328k | const auto t = Or(c, d); | 81 | 328k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 328k | Store(t_fixed, du, out + i); | 83 | 328k | } | 84 | 5.56k | if (last_full < len) { | 85 | 4.72k | const auto stop = Set(du, len); | 86 | 4.72k | const auto fence = Iota(du, last_full); | 87 | 4.72k | const auto take = Lt(fence, stop); | 88 | 4.72k | const auto val = LoadU(du, values + last_full); | 89 | 4.72k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 4.72k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 4.72k | const auto not_literal = Ge(val, kSplit); | 92 | 4.72k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 4.72k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 4.72k | const auto l = And(val, kMaskL); | 95 | 4.72k | const auto exp = ShiftRight<23>(b); | 96 | 4.72k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 4.72k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 4.72k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 4.72k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 4.72k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 4.72k | const auto d = And(m, kMaskM); | 102 | 4.72k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 4.72k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 4.72k | const auto c = Or(a, l); | 105 | 4.72k | extra_bits = Add(extra_bits, eb_masked); | 106 | 4.72k | const auto t = Or(c, d); | 107 | 4.72k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 4.72k | Store(t_fixed, du, out + last_full); | 109 | 4.72k | } | 110 | 5.56k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 5.56k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 45 | 5.56k | uint32_t* JXL_RESTRICT out) { | 46 | 5.56k | const HWY_FULL(uint32_t) du; | 47 | 5.56k | const HWY_FULL(float) df; | 48 | 5.56k | const auto kZero = Zero(du); | 49 | 5.56k | const auto kSplit = Set(du, 1 << E); | 50 | 5.56k | const auto kExpOffset = Set(du, 127); | 51 | 5.56k | const auto kEBOffset = Set(du, 127 + M + L); | 52 | 5.56k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 53 | 5.56k | const auto kMulN = Set(du, 1 << (M + L)); | 54 | 5.56k | const auto kMaskL = Set(du, (1 << L) - 1); | 55 | 5.56k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 56 | 5.56k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 57 | 5.56k | constexpr size_t kLargeShiftVal = 10; | 58 | 5.56k | const auto kLargeShift = Set(du, kLargeShiftVal); | 59 | | | 60 | 5.56k | auto extra_bits = kZero; | 61 | 5.56k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 62 | 333k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 63 | 328k | const auto val = LoadU(du, values + i); | 64 | 328k | const auto is_large = Gt(val, kLargeThreshold); | 65 | 328k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 66 | 328k | const auto not_literal = Ge(val, kSplit); | 67 | 328k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 68 | 328k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 69 | 328k | const auto l = And(val, kMaskL); | 70 | 328k | const auto exp = ShiftRight<23>(b); | 71 | 328k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 72 | 328k | const auto n = Sub(exp_fixed, kExpOffset); | 73 | 328k | const auto eb = Sub(exp_fixed, kEBOffset); | 74 | 328k | const auto m = ShiftRight<23 - M - L>(b); | 75 | 328k | const auto a = Add(kBase, Mul(n, kMulN)); | 76 | 328k | const auto d = And(m, kMaskM); | 77 | 328k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 78 | 328k | const auto c = Or(a, l); | 79 | 328k | extra_bits = Add(extra_bits, eb_fixed); | 80 | 328k | const auto t = Or(c, d); | 81 | 328k | const auto t_fixed = IfThenElse(not_literal, t, val); | 82 | 328k | Store(t_fixed, du, out + i); | 83 | 328k | } | 84 | 5.56k | if (last_full < len) { | 85 | 4.72k | const auto stop = Set(du, len); | 86 | 4.72k | const auto fence = Iota(du, last_full); | 87 | 4.72k | const auto take = Lt(fence, stop); | 88 | 4.72k | const auto val = LoadU(du, values + last_full); | 89 | 4.72k | const auto is_large = Gt(val, kLargeThreshold); | 90 | 4.72k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 91 | 4.72k | const auto not_literal = Ge(val, kSplit); | 92 | 4.72k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 93 | 4.72k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 94 | 4.72k | const auto l = And(val, kMaskL); | 95 | 4.72k | const auto exp = ShiftRight<23>(b); | 96 | 4.72k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 97 | 4.72k | const auto n = Sub(exp_fixed, kExpOffset); | 98 | 4.72k | const auto eb = Sub(exp_fixed, kEBOffset); | 99 | 4.72k | const auto m = ShiftRight<23 - M - L>(b); | 100 | 4.72k | const auto a = Add(kBase, Mul(n, kMulN)); | 101 | 4.72k | const auto d = And(m, kMaskM); | 102 | 4.72k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 103 | 4.72k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 104 | 4.72k | const auto c = Or(a, l); | 105 | 4.72k | extra_bits = Add(extra_bits, eb_masked); | 106 | 4.72k | const auto t = Or(c, d); | 107 | 4.72k | const auto t_fixed = IfThenElse(not_literal, t, val); | 108 | 4.72k | Store(t_fixed, du, out + last_full); | 109 | 4.72k | } | 110 | 5.56k | return GetLane(SumOfLanes(du, extra_bits)); | 111 | 5.56k | } |
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*) |