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