Skip to content

Commit 0abd6d9

Browse files
yumeyaoserge-sans-paille
authored andcommitted
Fix non-constexpr static const variable overhead
1 parent 8db7a6f commit 0abd6d9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/xsimd/math/xsimd_power.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ namespace xsimd
131131
z = select(denormal, z * twotonmb<B>(), z);
132132
B f = select(denormal, twotonmbo3<B>(), B(1.));
133133
#endif
134-
static const B CBRT2 = B(detail::caster32_t(0x3fa14518).f);
135-
static const B CBRT4 = B(detail::caster32_t(0x3fcb2ff5).f);
136-
static const B CBRT2I = B(detail::caster32_t(0x3f4b2ff5).f);
137-
static const B CBRT4I = B(detail::caster32_t(0x3f214518).f);
134+
const B CBRT2 = B(detail::caster32_t(0x3fa14518).f);
135+
const B CBRT4 = B(detail::caster32_t(0x3fcb2ff5).f);
136+
const B CBRT2I = B(detail::caster32_t(0x3f4b2ff5).f);
137+
const B CBRT4I = B(detail::caster32_t(0x3f214518).f);
138138
using i_type = as_integer_t<B>;
139139
i_type e;
140140
B x = frexp(z, e);
@@ -180,10 +180,10 @@ namespace xsimd
180180
z = select(denormal, z * twotonmb<B>(), z);
181181
B f = select(denormal, twotonmbo3<B>(), B(1.));
182182
#endif
183-
static const B CBRT2 = B(detail::caster64_t(int64_t(0x3ff428a2f98d728b)).f);
184-
static const B CBRT4 = B(detail::caster64_t(int64_t(0x3ff965fea53d6e3d)).f);
185-
static const B CBRT2I = B(detail::caster64_t(int64_t(0x3fe965fea53d6e3d)).f);
186-
static const B CBRT4I = B(detail::caster64_t(int64_t(0x3fe428a2f98d728b)).f);
183+
const B CBRT2 = B(detail::caster64_t(int64_t(0x3ff428a2f98d728b)).f);
184+
const B CBRT4 = B(detail::caster64_t(int64_t(0x3ff965fea53d6e3d)).f);
185+
const B CBRT2I = B(detail::caster64_t(int64_t(0x3fe965fea53d6e3d)).f);
186+
const B CBRT4I = B(detail::caster64_t(int64_t(0x3fe428a2f98d728b)).f);
187187
using i_type = as_integer_t<B>;
188188
i_type e;
189189
B x = frexp(z, e);

0 commit comments

Comments
 (0)