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