110 | 523k | } Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Unexecuted instantiation: unsigned int jxl::N_SSE4::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) unsigned int jxl::N_AVX2::EstimateTokenCostImpl<0ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 87.9k | uint32_t* JXL_RESTRICT out) { | 45 | 87.9k | const HWY_FULL(uint32_t) du; | 46 | 87.9k | const HWY_FULL(float) df; | 47 | 87.9k | const auto kZero = Zero(du); | 48 | 87.9k | const auto kSplit = Set(du, 1 << E); | 49 | 87.9k | const auto kExpOffset = Set(du, 127); | 50 | 87.9k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 87.9k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 87.9k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 87.9k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 87.9k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 87.9k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 87.9k | constexpr size_t kLargeShiftVal = 10; | 57 | 87.9k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 87.9k | auto extra_bits = kZero; | 60 | 87.9k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 14.2M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 14.1M | const auto val = LoadU(du, values + i); | 63 | 14.1M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 14.1M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 14.1M | const auto not_literal = Ge(val, kSplit); | 66 | 14.1M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 14.1M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 14.1M | const auto l = And(val, kMaskL); | 69 | 14.1M | const auto exp = ShiftRight<23>(b); | 70 | 14.1M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 14.1M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 14.1M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 14.1M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 14.1M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 14.1M | const auto d = And(m, kMaskM); | 76 | 14.1M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 14.1M | const auto c = Or(a, l); | 78 | 14.1M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 14.1M | const auto t = Or(c, d); | 80 | 14.1M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 14.1M | Store(t_fixed, du, out + i); | 82 | 14.1M | } | 83 | 87.9k | if (last_full < len) { | 84 | 76.2k | const auto stop = Set(du, len); | 85 | 76.2k | const auto fence = Iota(du, last_full); | 86 | 76.2k | const auto take = Lt(fence, stop); | 87 | 76.2k | const auto val = LoadU(du, values + last_full); | 88 | 76.2k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 76.2k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 76.2k | const auto not_literal = Ge(val, kSplit); | 91 | 76.2k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 76.2k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 76.2k | const auto l = And(val, kMaskL); | 94 | 76.2k | const auto exp = ShiftRight<23>(b); | 95 | 76.2k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 76.2k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 76.2k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 76.2k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 76.2k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 76.2k | const auto d = And(m, kMaskM); | 101 | 76.2k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 76.2k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 76.2k | const auto c = Or(a, l); | 104 | 76.2k | extra_bits = Add(extra_bits, eb_masked); | 105 | 76.2k | const auto t = Or(c, d); | 106 | 76.2k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 76.2k | Store(t_fixed, du, out + last_full); | 108 | 76.2k | } | 109 | 87.9k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 87.9k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<2ul, 0ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 87.2k | uint32_t* JXL_RESTRICT out) { | 45 | 87.2k | const HWY_FULL(uint32_t) du; | 46 | 87.2k | const HWY_FULL(float) df; | 47 | 87.2k | const auto kZero = Zero(du); | 48 | 87.2k | const auto kSplit = Set(du, 1 << E); | 49 | 87.2k | const auto kExpOffset = Set(du, 127); | 50 | 87.2k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 87.2k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 87.2k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 87.2k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 87.2k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 87.2k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 87.2k | constexpr size_t kLargeShiftVal = 10; | 57 | 87.2k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 87.2k | auto extra_bits = kZero; | 60 | 87.2k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 14.2M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 14.1M | const auto val = LoadU(du, values + i); | 63 | 14.1M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 14.1M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 14.1M | const auto not_literal = Ge(val, kSplit); | 66 | 14.1M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 14.1M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 14.1M | const auto l = And(val, kMaskL); | 69 | 14.1M | const auto exp = ShiftRight<23>(b); | 70 | 14.1M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 14.1M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 14.1M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 14.1M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 14.1M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 14.1M | const auto d = And(m, kMaskM); | 76 | 14.1M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 14.1M | const auto c = Or(a, l); | 78 | 14.1M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 14.1M | const auto t = Or(c, d); | 80 | 14.1M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 14.1M | Store(t_fixed, du, out + i); | 82 | 14.1M | } | 83 | 87.2k | if (last_full < len) { | 84 | 75.6k | const auto stop = Set(du, len); | 85 | 75.6k | const auto fence = Iota(du, last_full); | 86 | 75.6k | const auto take = Lt(fence, stop); | 87 | 75.6k | const auto val = LoadU(du, values + last_full); | 88 | 75.6k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 75.6k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 75.6k | const auto not_literal = Ge(val, kSplit); | 91 | 75.6k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 75.6k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 75.6k | const auto l = And(val, kMaskL); | 94 | 75.6k | const auto exp = ShiftRight<23>(b); | 95 | 75.6k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 75.6k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 75.6k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 75.6k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 75.6k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 75.6k | const auto d = And(m, kMaskM); | 101 | 75.6k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 75.6k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 75.6k | const auto c = Or(a, l); | 104 | 75.6k | extra_bits = Add(extra_bits, eb_masked); | 105 | 75.6k | const auto t = Or(c, d); | 106 | 75.6k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 75.6k | Store(t_fixed, du, out + last_full); | 108 | 75.6k | } | 109 | 87.2k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 87.2k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<3ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 87.1k | uint32_t* JXL_RESTRICT out) { | 45 | 87.1k | const HWY_FULL(uint32_t) du; | 46 | 87.1k | const HWY_FULL(float) df; | 47 | 87.1k | const auto kZero = Zero(du); | 48 | 87.1k | const auto kSplit = Set(du, 1 << E); | 49 | 87.1k | const auto kExpOffset = Set(du, 127); | 50 | 87.1k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 87.1k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 87.1k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 87.1k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 87.1k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 87.1k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 87.1k | constexpr size_t kLargeShiftVal = 10; | 57 | 87.1k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 87.1k | auto extra_bits = kZero; | 60 | 87.1k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 14.2M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 14.1M | const auto val = LoadU(du, values + i); | 63 | 14.1M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 14.1M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 14.1M | const auto not_literal = Ge(val, kSplit); | 66 | 14.1M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 14.1M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 14.1M | const auto l = And(val, kMaskL); | 69 | 14.1M | const auto exp = ShiftRight<23>(b); | 70 | 14.1M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 14.1M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 14.1M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 14.1M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 14.1M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 14.1M | const auto d = And(m, kMaskM); | 76 | 14.1M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 14.1M | const auto c = Or(a, l); | 78 | 14.1M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 14.1M | const auto t = Or(c, d); | 80 | 14.1M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 14.1M | Store(t_fixed, du, out + i); | 82 | 14.1M | } | 83 | 87.1k | if (last_full < len) { | 84 | 75.5k | const auto stop = Set(du, len); | 85 | 75.5k | const auto fence = Iota(du, last_full); | 86 | 75.5k | const auto take = Lt(fence, stop); | 87 | 75.5k | const auto val = LoadU(du, values + last_full); | 88 | 75.5k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 75.5k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 75.5k | const auto not_literal = Ge(val, kSplit); | 91 | 75.5k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 75.5k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 75.5k | const auto l = And(val, kMaskL); | 94 | 75.5k | const auto exp = ShiftRight<23>(b); | 95 | 75.5k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 75.5k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 75.5k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 75.5k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 75.5k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 75.5k | const auto d = And(m, kMaskM); | 101 | 75.5k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 75.5k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 75.5k | const auto c = Or(a, l); | 104 | 75.5k | extra_bits = Add(extra_bits, eb_masked); | 105 | 75.5k | const auto t = Or(c, d); | 106 | 75.5k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 75.5k | Store(t_fixed, du, out + last_full); | 108 | 75.5k | } | 109 | 87.1k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 87.1k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 1ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 87.2k | uint32_t* JXL_RESTRICT out) { | 45 | 87.2k | const HWY_FULL(uint32_t) du; | 46 | 87.2k | const HWY_FULL(float) df; | 47 | 87.2k | const auto kZero = Zero(du); | 48 | 87.2k | const auto kSplit = Set(du, 1 << E); | 49 | 87.2k | const auto kExpOffset = Set(du, 127); | 50 | 87.2k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 87.2k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 87.2k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 87.2k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 87.2k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 87.2k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 87.2k | constexpr size_t kLargeShiftVal = 10; | 57 | 87.2k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 87.2k | auto extra_bits = kZero; | 60 | 87.2k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 14.2M | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 14.1M | const auto val = LoadU(du, values + i); | 63 | 14.1M | const auto is_large = Gt(val, kLargeThreshold); | 64 | 14.1M | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 14.1M | const auto not_literal = Ge(val, kSplit); | 66 | 14.1M | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 14.1M | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 14.1M | const auto l = And(val, kMaskL); | 69 | 14.1M | const auto exp = ShiftRight<23>(b); | 70 | 14.1M | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 14.1M | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 14.1M | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 14.1M | const auto m = ShiftRight<23 - M - L>(b); | 74 | 14.1M | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 14.1M | const auto d = And(m, kMaskM); | 76 | 14.1M | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 14.1M | const auto c = Or(a, l); | 78 | 14.1M | extra_bits = Add(extra_bits, eb_fixed); | 79 | 14.1M | const auto t = Or(c, d); | 80 | 14.1M | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 14.1M | Store(t_fixed, du, out + i); | 82 | 14.1M | } | 83 | 87.2k | if (last_full < len) { | 84 | 75.6k | const auto stop = Set(du, len); | 85 | 75.6k | const auto fence = Iota(du, last_full); | 86 | 75.6k | const auto take = Lt(fence, stop); | 87 | 75.6k | const auto val = LoadU(du, values + last_full); | 88 | 75.6k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 75.6k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 75.6k | const auto not_literal = Ge(val, kSplit); | 91 | 75.6k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 75.6k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 75.6k | const auto l = And(val, kMaskL); | 94 | 75.6k | const auto exp = ShiftRight<23>(b); | 95 | 75.6k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 75.6k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 75.6k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 75.6k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 75.6k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 75.6k | const auto d = And(m, kMaskM); | 101 | 75.6k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 75.6k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 75.6k | const auto c = Or(a, l); | 104 | 75.6k | extra_bits = Add(extra_bits, eb_masked); | 105 | 75.6k | const auto t = Or(c, d); | 106 | 75.6k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 75.6k | Store(t_fixed, du, out + last_full); | 108 | 75.6k | } | 109 | 87.2k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 87.2k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<4ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 1ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.75k | uint32_t* JXL_RESTRICT out) { | 45 | 7.75k | const HWY_FULL(uint32_t) du; | 46 | 7.75k | const HWY_FULL(float) df; | 47 | 7.75k | const auto kZero = Zero(du); | 48 | 7.75k | const auto kSplit = Set(du, 1 << E); | 49 | 7.75k | const auto kExpOffset = Set(du, 127); | 50 | 7.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.75k | auto extra_bits = kZero; | 60 | 7.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.75k | if (last_full < len) { | 84 | 6.55k | const auto stop = Set(du, len); | 85 | 6.55k | const auto fence = Iota(du, last_full); | 86 | 6.55k | const auto take = Lt(fence, stop); | 87 | 6.55k | const auto val = LoadU(du, values + last_full); | 88 | 6.55k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.55k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.55k | const auto not_literal = Ge(val, kSplit); | 91 | 6.55k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.55k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.55k | const auto l = And(val, kMaskL); | 94 | 6.55k | const auto exp = ShiftRight<23>(b); | 95 | 6.55k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.55k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.55k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.55k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.55k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.55k | const auto d = And(m, kMaskM); | 101 | 6.55k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.55k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.55k | const auto c = Or(a, l); | 104 | 6.55k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.55k | const auto t = Or(c, d); | 106 | 6.55k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.55k | Store(t_fixed, du, out + last_full); | 108 | 6.55k | } | 109 | 7.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 1ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 2ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<5ul, 2ul, 3ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.75k | uint32_t* JXL_RESTRICT out) { | 45 | 7.75k | const HWY_FULL(uint32_t) du; | 46 | 7.75k | const HWY_FULL(float) df; | 47 | 7.75k | const auto kZero = Zero(du); | 48 | 7.75k | const auto kSplit = Set(du, 1 << E); | 49 | 7.75k | const auto kExpOffset = Set(du, 127); | 50 | 7.75k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.75k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.75k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.75k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.75k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.75k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.75k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.75k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.75k | auto extra_bits = kZero; | 60 | 7.75k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.75k | if (last_full < len) { | 84 | 6.55k | const auto stop = Set(du, len); | 85 | 6.55k | const auto fence = Iota(du, last_full); | 86 | 6.55k | const auto take = Lt(fence, stop); | 87 | 6.55k | const auto val = LoadU(du, values + last_full); | 88 | 6.55k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.55k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.55k | const auto not_literal = Ge(val, kSplit); | 91 | 6.55k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.55k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.55k | const auto l = And(val, kMaskL); | 94 | 6.55k | const auto exp = ShiftRight<23>(b); | 95 | 6.55k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.55k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.55k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.55k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.55k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.55k | const auto d = And(m, kMaskM); | 101 | 6.55k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.55k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.55k | const auto c = Or(a, l); | 104 | 6.55k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.55k | const auto t = Or(c, d); | 106 | 6.55k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.55k | Store(t_fixed, du, out + last_full); | 108 | 6.55k | } | 109 | 7.75k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.75k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 1ul, 5ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 6.62k | uint32_t* JXL_RESTRICT out) { | 45 | 6.62k | const HWY_FULL(uint32_t) du; | 46 | 6.62k | const HWY_FULL(float) df; | 47 | 6.62k | const auto kZero = Zero(du); | 48 | 6.62k | const auto kSplit = Set(du, 1 << E); | 49 | 6.62k | const auto kExpOffset = Set(du, 127); | 50 | 6.62k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 6.62k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 6.62k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 6.62k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 6.62k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 6.62k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 6.62k | constexpr size_t kLargeShiftVal = 10; | 57 | 6.62k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 6.62k | auto extra_bits = kZero; | 60 | 6.62k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 413k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 406k | const auto val = LoadU(du, values + i); | 63 | 406k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 406k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 406k | const auto not_literal = Ge(val, kSplit); | 66 | 406k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 406k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 406k | const auto l = And(val, kMaskL); | 69 | 406k | const auto exp = ShiftRight<23>(b); | 70 | 406k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 406k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 406k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 406k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 406k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 406k | const auto d = And(m, kMaskM); | 76 | 406k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 406k | const auto c = Or(a, l); | 78 | 406k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 406k | const auto t = Or(c, d); | 80 | 406k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 406k | Store(t_fixed, du, out + i); | 82 | 406k | } | 83 | 6.62k | if (last_full < len) { | 84 | 5.61k | const auto stop = Set(du, len); | 85 | 5.61k | const auto fence = Iota(du, last_full); | 86 | 5.61k | const auto take = Lt(fence, stop); | 87 | 5.61k | const auto val = LoadU(du, values + last_full); | 88 | 5.61k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 5.61k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 5.61k | const auto not_literal = Ge(val, kSplit); | 91 | 5.61k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 5.61k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 5.61k | const auto l = And(val, kMaskL); | 94 | 5.61k | const auto exp = ShiftRight<23>(b); | 95 | 5.61k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 5.61k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 5.61k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 5.61k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 5.61k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 5.61k | const auto d = And(m, kMaskM); | 101 | 5.61k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 5.61k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 5.61k | const auto c = Or(a, l); | 104 | 5.61k | extra_bits = Add(extra_bits, eb_masked); | 105 | 5.61k | const auto t = Or(c, d); | 106 | 5.61k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 5.61k | Store(t_fixed, du, out + last_full); | 108 | 5.61k | } | 109 | 6.62k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 6.62k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<6ul, 2ul, 4ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 6.62k | uint32_t* JXL_RESTRICT out) { | 45 | 6.62k | const HWY_FULL(uint32_t) du; | 46 | 6.62k | const HWY_FULL(float) df; | 47 | 6.62k | const auto kZero = Zero(du); | 48 | 6.62k | const auto kSplit = Set(du, 1 << E); | 49 | 6.62k | const auto kExpOffset = Set(du, 127); | 50 | 6.62k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 6.62k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 6.62k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 6.62k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 6.62k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 6.62k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 6.62k | constexpr size_t kLargeShiftVal = 10; | 57 | 6.62k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 6.62k | auto extra_bits = kZero; | 60 | 6.62k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 413k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 406k | const auto val = LoadU(du, values + i); | 63 | 406k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 406k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 406k | const auto not_literal = Ge(val, kSplit); | 66 | 406k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 406k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 406k | const auto l = And(val, kMaskL); | 69 | 406k | const auto exp = ShiftRight<23>(b); | 70 | 406k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 406k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 406k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 406k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 406k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 406k | const auto d = And(m, kMaskM); | 76 | 406k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 406k | const auto c = Or(a, l); | 78 | 406k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 406k | const auto t = Or(c, d); | 80 | 406k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 406k | Store(t_fixed, du, out + i); | 82 | 406k | } | 83 | 6.62k | if (last_full < len) { | 84 | 5.61k | const auto stop = Set(du, len); | 85 | 5.61k | const auto fence = Iota(du, last_full); | 86 | 5.61k | const auto take = Lt(fence, stop); | 87 | 5.61k | const auto val = LoadU(du, values + last_full); | 88 | 5.61k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 5.61k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 5.61k | const auto not_literal = Ge(val, kSplit); | 91 | 5.61k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 5.61k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 5.61k | const auto l = And(val, kMaskL); | 94 | 5.61k | const auto exp = ShiftRight<23>(b); | 95 | 5.61k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 5.61k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 5.61k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 5.61k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 5.61k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 5.61k | const auto d = And(m, kMaskM); | 101 | 5.61k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 5.61k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 5.61k | const auto c = Or(a, l); | 104 | 5.61k | extra_bits = Add(extra_bits, eb_masked); | 105 | 5.61k | const auto t = Or(c, d); | 106 | 5.61k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 5.61k | Store(t_fixed, du, out + last_full); | 108 | 5.61k | } | 109 | 6.62k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 6.62k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<7ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 7.76k | uint32_t* JXL_RESTRICT out) { | 45 | 7.76k | const HWY_FULL(uint32_t) du; | 46 | 7.76k | const HWY_FULL(float) df; | 47 | 7.76k | const auto kZero = Zero(du); | 48 | 7.76k | const auto kSplit = Set(du, 1 << E); | 49 | 7.76k | const auto kExpOffset = Set(du, 127); | 50 | 7.76k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 7.76k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 7.76k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 7.76k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 7.76k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 7.76k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 7.76k | constexpr size_t kLargeShiftVal = 10; | 57 | 7.76k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 7.76k | auto extra_bits = kZero; | 60 | 7.76k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 814k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 806k | const auto val = LoadU(du, values + i); | 63 | 806k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 806k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 806k | const auto not_literal = Ge(val, kSplit); | 66 | 806k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 806k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 806k | const auto l = And(val, kMaskL); | 69 | 806k | const auto exp = ShiftRight<23>(b); | 70 | 806k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 806k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 806k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 806k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 806k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 806k | const auto d = And(m, kMaskM); | 76 | 806k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 806k | const auto c = Or(a, l); | 78 | 806k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 806k | const auto t = Or(c, d); | 80 | 806k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 806k | Store(t_fixed, du, out + i); | 82 | 806k | } | 83 | 7.76k | if (last_full < len) { | 84 | 6.56k | const auto stop = Set(du, len); | 85 | 6.56k | const auto fence = Iota(du, last_full); | 86 | 6.56k | const auto take = Lt(fence, stop); | 87 | 6.56k | const auto val = LoadU(du, values + last_full); | 88 | 6.56k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 6.56k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 6.56k | const auto not_literal = Ge(val, kSplit); | 91 | 6.56k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 6.56k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 6.56k | const auto l = And(val, kMaskL); | 94 | 6.56k | const auto exp = ShiftRight<23>(b); | 95 | 6.56k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 6.56k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 6.56k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 6.56k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 6.56k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 6.56k | const auto d = And(m, kMaskM); | 101 | 6.56k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 6.56k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 6.56k | const auto c = Or(a, l); | 104 | 6.56k | extra_bits = Add(extra_bits, eb_masked); | 105 | 6.56k | const auto t = Or(c, d); | 106 | 6.56k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 6.56k | Store(t_fixed, du, out + last_full); | 108 | 6.56k | } | 109 | 7.76k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 7.76k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<8ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 5.70k | uint32_t* JXL_RESTRICT out) { | 45 | 5.70k | const HWY_FULL(uint32_t) du; | 46 | 5.70k | const HWY_FULL(float) df; | 47 | 5.70k | const auto kZero = Zero(du); | 48 | 5.70k | const auto kSplit = Set(du, 1 << E); | 49 | 5.70k | const auto kExpOffset = Set(du, 127); | 50 | 5.70k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 5.70k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 5.70k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 5.70k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 5.70k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 5.70k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 5.70k | constexpr size_t kLargeShiftVal = 10; | 57 | 5.70k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 5.70k | auto extra_bits = kZero; | 60 | 5.70k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 375k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 370k | const auto val = LoadU(du, values + i); | 63 | 370k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 370k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 370k | const auto not_literal = Ge(val, kSplit); | 66 | 370k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 370k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 370k | const auto l = And(val, kMaskL); | 69 | 370k | const auto exp = ShiftRight<23>(b); | 70 | 370k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 370k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 370k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 370k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 370k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 370k | const auto d = And(m, kMaskM); | 76 | 370k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 370k | const auto c = Or(a, l); | 78 | 370k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 370k | const auto t = Or(c, d); | 80 | 370k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 370k | Store(t_fixed, du, out + i); | 82 | 370k | } | 83 | 5.70k | if (last_full < len) { | 84 | 4.77k | const auto stop = Set(du, len); | 85 | 4.77k | const auto fence = Iota(du, last_full); | 86 | 4.77k | const auto take = Lt(fence, stop); | 87 | 4.77k | const auto val = LoadU(du, values + last_full); | 88 | 4.77k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 4.77k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 4.77k | const auto not_literal = Ge(val, kSplit); | 91 | 4.77k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 4.77k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 4.77k | const auto l = And(val, kMaskL); | 94 | 4.77k | const auto exp = ShiftRight<23>(b); | 95 | 4.77k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 4.77k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 4.77k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 4.77k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 4.77k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 4.77k | const auto d = And(m, kMaskM); | 101 | 4.77k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 4.77k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 4.77k | const auto c = Or(a, l); | 104 | 4.77k | extra_bits = Add(extra_bits, eb_masked); | 105 | 4.77k | const auto t = Or(c, d); | 106 | 4.77k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 4.77k | Store(t_fixed, du, out + last_full); | 108 | 4.77k | } | 109 | 5.70k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 5.70k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<9ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 5.70k | uint32_t* JXL_RESTRICT out) { | 45 | 5.70k | const HWY_FULL(uint32_t) du; | 46 | 5.70k | const HWY_FULL(float) df; | 47 | 5.70k | const auto kZero = Zero(du); | 48 | 5.70k | const auto kSplit = Set(du, 1 << E); | 49 | 5.70k | const auto kExpOffset = Set(du, 127); | 50 | 5.70k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 5.70k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 5.70k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 5.70k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 5.70k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 5.70k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 5.70k | constexpr size_t kLargeShiftVal = 10; | 57 | 5.70k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 5.70k | auto extra_bits = kZero; | 60 | 5.70k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 375k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 370k | const auto val = LoadU(du, values + i); | 63 | 370k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 370k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 370k | const auto not_literal = Ge(val, kSplit); | 66 | 370k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 370k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 370k | const auto l = And(val, kMaskL); | 69 | 370k | const auto exp = ShiftRight<23>(b); | 70 | 370k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 370k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 370k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 370k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 370k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 370k | const auto d = And(m, kMaskM); | 76 | 370k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 370k | const auto c = Or(a, l); | 78 | 370k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 370k | const auto t = Or(c, d); | 80 | 370k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 370k | Store(t_fixed, du, out + i); | 82 | 370k | } | 83 | 5.70k | if (last_full < len) { | 84 | 4.77k | const auto stop = Set(du, len); | 85 | 4.77k | const auto fence = Iota(du, last_full); | 86 | 4.77k | const auto take = Lt(fence, stop); | 87 | 4.77k | const auto val = LoadU(du, values + last_full); | 88 | 4.77k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 4.77k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 4.77k | const auto not_literal = Ge(val, kSplit); | 91 | 4.77k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 4.77k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 4.77k | const auto l = And(val, kMaskL); | 94 | 4.77k | const auto exp = ShiftRight<23>(b); | 95 | 4.77k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 4.77k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 4.77k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 4.77k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 4.77k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 4.77k | const auto d = And(m, kMaskM); | 101 | 4.77k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 4.77k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 4.77k | const auto c = Or(a, l); | 104 | 4.77k | extra_bits = Add(extra_bits, eb_masked); | 105 | 4.77k | const auto t = Or(c, d); | 106 | 4.77k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 4.77k | Store(t_fixed, du, out + last_full); | 108 | 4.77k | } | 109 | 5.70k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 5.70k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<10ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 5.70k | uint32_t* JXL_RESTRICT out) { | 45 | 5.70k | const HWY_FULL(uint32_t) du; | 46 | 5.70k | const HWY_FULL(float) df; | 47 | 5.70k | const auto kZero = Zero(du); | 48 | 5.70k | const auto kSplit = Set(du, 1 << E); | 49 | 5.70k | const auto kExpOffset = Set(du, 127); | 50 | 5.70k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 5.70k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 5.70k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 5.70k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 5.70k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 5.70k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 5.70k | constexpr size_t kLargeShiftVal = 10; | 57 | 5.70k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 5.70k | auto extra_bits = kZero; | 60 | 5.70k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 375k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 370k | const auto val = LoadU(du, values + i); | 63 | 370k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 370k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 370k | const auto not_literal = Ge(val, kSplit); | 66 | 370k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 370k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 370k | const auto l = And(val, kMaskL); | 69 | 370k | const auto exp = ShiftRight<23>(b); | 70 | 370k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 370k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 370k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 370k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 370k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 370k | const auto d = And(m, kMaskM); | 76 | 370k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 370k | const auto c = Or(a, l); | 78 | 370k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 370k | const auto t = Or(c, d); | 80 | 370k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 370k | Store(t_fixed, du, out + i); | 82 | 370k | } | 83 | 5.70k | if (last_full < len) { | 84 | 4.77k | const auto stop = Set(du, len); | 85 | 4.77k | const auto fence = Iota(du, last_full); | 86 | 4.77k | const auto take = Lt(fence, stop); | 87 | 4.77k | const auto val = LoadU(du, values + last_full); | 88 | 4.77k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 4.77k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 4.77k | const auto not_literal = Ge(val, kSplit); | 91 | 4.77k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 4.77k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 4.77k | const auto l = And(val, kMaskL); | 94 | 4.77k | const auto exp = ShiftRight<23>(b); | 95 | 4.77k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 4.77k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 4.77k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 4.77k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 4.77k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 4.77k | const auto d = And(m, kMaskM); | 101 | 4.77k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 4.77k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 4.77k | const auto c = Or(a, l); | 104 | 4.77k | extra_bits = Add(extra_bits, eb_masked); | 105 | 4.77k | const auto t = Or(c, d); | 106 | 4.77k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 4.77k | Store(t_fixed, du, out + last_full); | 108 | 4.77k | } | 109 | 5.70k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 5.70k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<11ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 5.70k | uint32_t* JXL_RESTRICT out) { | 45 | 5.70k | const HWY_FULL(uint32_t) du; | 46 | 5.70k | const HWY_FULL(float) df; | 47 | 5.70k | const auto kZero = Zero(du); | 48 | 5.70k | const auto kSplit = Set(du, 1 << E); | 49 | 5.70k | const auto kExpOffset = Set(du, 127); | 50 | 5.70k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 5.70k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 5.70k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 5.70k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 5.70k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 5.70k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 5.70k | constexpr size_t kLargeShiftVal = 10; | 57 | 5.70k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 5.70k | auto extra_bits = kZero; | 60 | 5.70k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 375k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 370k | const auto val = LoadU(du, values + i); | 63 | 370k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 370k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 370k | const auto not_literal = Ge(val, kSplit); | 66 | 370k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 370k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 370k | const auto l = And(val, kMaskL); | 69 | 370k | const auto exp = ShiftRight<23>(b); | 70 | 370k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 370k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 370k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 370k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 370k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 370k | const auto d = And(m, kMaskM); | 76 | 370k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 370k | const auto c = Or(a, l); | 78 | 370k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 370k | const auto t = Or(c, d); | 80 | 370k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 370k | Store(t_fixed, du, out + i); | 82 | 370k | } | 83 | 5.70k | if (last_full < len) { | 84 | 4.77k | const auto stop = Set(du, len); | 85 | 4.77k | const auto fence = Iota(du, last_full); | 86 | 4.77k | const auto take = Lt(fence, stop); | 87 | 4.77k | const auto val = LoadU(du, values + last_full); | 88 | 4.77k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 4.77k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 4.77k | const auto not_literal = Ge(val, kSplit); | 91 | 4.77k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 4.77k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 4.77k | const auto l = And(val, kMaskL); | 94 | 4.77k | const auto exp = ShiftRight<23>(b); | 95 | 4.77k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 4.77k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 4.77k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 4.77k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 4.77k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 4.77k | const auto d = And(m, kMaskM); | 101 | 4.77k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 4.77k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 4.77k | const auto c = Or(a, l); | 104 | 4.77k | extra_bits = Add(extra_bits, eb_masked); | 105 | 4.77k | const auto t = Or(c, d); | 106 | 4.77k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 4.77k | Store(t_fixed, du, out + last_full); | 108 | 4.77k | } | 109 | 5.70k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 5.70k | } |
unsigned int jxl::N_AVX2::EstimateTokenCostImpl<12ul, 0ul, 0ul>(unsigned int*, unsigned long, unsigned int*) Line | Count | Source | 44 | 5.70k | uint32_t* JXL_RESTRICT out) { | 45 | 5.70k | const HWY_FULL(uint32_t) du; | 46 | 5.70k | const HWY_FULL(float) df; | 47 | 5.70k | const auto kZero = Zero(du); | 48 | 5.70k | const auto kSplit = Set(du, 1 << E); | 49 | 5.70k | const auto kExpOffset = Set(du, 127); | 50 | 5.70k | const auto kEBOffset = Set(du, 127 + M + L); | 51 | 5.70k | const auto kBase = Set(du, static_cast<uint32_t>((1 << E) - (E << (M + L)))); | 52 | 5.70k | const auto kMulN = Set(du, 1 << (M + L)); | 53 | 5.70k | const auto kMaskL = Set(du, (1 << L) - 1); | 54 | 5.70k | const auto kMaskM = Set(du, ((1 << M) - 1) << L); | 55 | 5.70k | const auto kLargeThreshold = Set(du, (1 << 22) - 1); | 56 | 5.70k | constexpr size_t kLargeShiftVal = 10; | 57 | 5.70k | const auto kLargeShift = Set(du, kLargeShiftVal); | 58 | | | 59 | 5.70k | auto extra_bits = kZero; | 60 | 5.70k | size_t last_full = Lanes(du) * (len / Lanes(du)); | 61 | 375k | for (size_t i = 0; i < last_full; i += Lanes(du)) { | 62 | 370k | const auto val = LoadU(du, values + i); | 63 | 370k | const auto is_large = Gt(val, kLargeThreshold); | 64 | 370k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 65 | 370k | const auto not_literal = Ge(val, kSplit); | 66 | 370k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 67 | 370k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 68 | 370k | const auto l = And(val, kMaskL); | 69 | 370k | const auto exp = ShiftRight<23>(b); | 70 | 370k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 71 | 370k | const auto n = Sub(exp_fixed, kExpOffset); | 72 | 370k | const auto eb = Sub(exp_fixed, kEBOffset); | 73 | 370k | const auto m = ShiftRight<23 - M - L>(b); | 74 | 370k | const auto a = Add(kBase, Mul(n, kMulN)); | 75 | 370k | const auto d = And(m, kMaskM); | 76 | 370k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 77 | 370k | const auto c = Or(a, l); | 78 | 370k | extra_bits = Add(extra_bits, eb_fixed); | 79 | 370k | const auto t = Or(c, d); | 80 | 370k | const auto t_fixed = IfThenElse(not_literal, t, val); | 81 | 370k | Store(t_fixed, du, out + i); | 82 | 370k | } | 83 | 5.70k | if (last_full < len) { | 84 | 4.77k | const auto stop = Set(du, len); | 85 | 4.77k | const auto fence = Iota(du, last_full); | 86 | 4.77k | const auto take = Lt(fence, stop); | 87 | 4.77k | const auto val = LoadU(du, values + last_full); | 88 | 4.77k | const auto is_large = Gt(val, kLargeThreshold); | 89 | 4.77k | const auto val_shifted = ShiftRight<kLargeShiftVal>(val); | 90 | 4.77k | const auto not_literal = Ge(val, kSplit); | 91 | 4.77k | const auto val_fixed = IfThenElse(is_large, val_shifted, val); | 92 | 4.77k | const auto b = BitCast(du, ConvertTo(df, val_fixed)); | 93 | 4.77k | const auto l = And(val, kMaskL); | 94 | 4.77k | const auto exp = ShiftRight<23>(b); | 95 | 4.77k | const auto exp_fixed = IfThenElse(is_large, Add(exp, kLargeShift), exp); | 96 | 4.77k | const auto n = Sub(exp_fixed, kExpOffset); | 97 | 4.77k | const auto eb = Sub(exp_fixed, kEBOffset); | 98 | 4.77k | const auto m = ShiftRight<23 - M - L>(b); | 99 | 4.77k | const auto a = Add(kBase, Mul(n, kMulN)); | 100 | 4.77k | const auto d = And(m, kMaskM); | 101 | 4.77k | const auto eb_fixed = IfThenElseZero(not_literal, eb); | 102 | 4.77k | const auto eb_masked = IfThenElseZero(take, eb_fixed); | 103 | 4.77k | const auto c = Or(a, l); | 104 | 4.77k | extra_bits = Add(extra_bits, eb_masked); | 105 | 4.77k | const auto t = Or(c, d); | 106 | 4.77k | const auto t_fixed = IfThenElse(not_literal, t, val); | 107 | 4.77k | Store(t_fixed, du, out + last_full); | 108 | 4.77k | } | 109 | 5.70k | return GetLane(SumOfLanes(du, extra_bits)); | 110 | 5.70k | } |
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*) |