File tree Expand file tree Collapse file tree
Spatialization/include/JPLSpatial/Math Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ namespace JPL
8787 // / Declare some SIMD constants
8888
8989#define JPL_FL_CONSTANT (Name, Val )\
90- JPL_INLINE const simd& c_##Name() noexcept { static const simd v (Val); return v ; }
90+ JPL_INLINE simd c_##Name() noexcept { return simd (Val);; }
9191
9292#define JPL_INT_CONSTANT (Name, Val )\
93- JPL_INLINE const simd_mask& c_i##Name() noexcept { static const simd_mask v (static_cast <uint32>(Val)); return v ; }
93+ JPL_INLINE simd_mask c_i##Name() noexcept { return simd_mask (static_cast <uint32>(Val)); }
9494
9595#define JPL_MASK_CONSTANT (Name, Val )\
96- JPL_INLINE const simd_mask& c_##Name() noexcept { static const simd_mask v (static_cast <uint32>(Val)); return v ; }
96+ JPL_INLINE simd_mask c_##Name() noexcept { return simd_mask (static_cast <uint32>(Val)); }
9797
9898 namespace constant
9999 {
You can’t perform that action at this time.
0 commit comments