Skip to content

Commit 3b801c8

Browse files
jan-wassenbergcopybara-github
authored andcommitted
avoid lambda trailing return type (GCC 10.2 fix)
PiperOrigin-RevId: 469444451
1 parent 0587070 commit 3b801c8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

hwy/ops/x86_128-inl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5654,8 +5654,7 @@ HWY_API Vec128<double, N> ConvertTo(HWY_MAYBE_UNUSED Simd<double, N, 0> dd,
56545654
const VU v_lo = And(v, msk_lo);
56555655
const VU v_hi = ShiftRight<32>(v);
56565656

5657-
auto uint64_to_double128_fast = [&dd](VU w) HWY_ATTR
5658-
{
5657+
auto uint64_to_double128_fast = [&dd](VU w) HWY_ATTR {
56595658
w = Or(w, VU{detail::BitCastToInteger(Set(dd, 0x0010000000000000).raw)});
56605659
return BitCast(dd, w) - Set(dd, 0x0010000000000000);
56615660
};

hwy/ops/x86_256-inl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4244,8 +4244,7 @@ HWY_API Vec256<double> ConvertTo(HWY_MAYBE_UNUSED Full256<double> dd,
42444244
const VU v_lo = And(v, msk_lo);
42454245
const VU v_hi = ShiftRight<32>(v);
42464246

4247-
auto uint64_to_double256_fast = [&dd](Vec256<uint64_t> w)
4248-
HWY_ATTR -> Vec256<double> {
4247+
auto uint64_to_double256_fast = [&dd](Vec256<uint64_t> w) HWY_ATTR {
42494248
w = Or(w, Vec256<uint64_t>{
42504249
detail::BitCastToInteger(Set(dd, 0x0010000000000000).raw)});
42514250
return BitCast(dd, w) - Set(dd, 0x0010000000000000);

0 commit comments

Comments
 (0)