Cleanup last few build details

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2024-01-01 19:39:53 +01:00
parent a8a5cea9fb
commit 60d2651f2e
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
13 changed files with 34 additions and 25 deletions

View file

@ -50,3 +50,17 @@
# define SIMDE_WASM_SIMD128_NATIVE
# endif
#endif
// fix win32 build
#ifdef _WIN32
static inline
float simde_math_roundevenf(float v) {
float rounded = __builtin_roundf(v);
float diff = rounded - v;
if (__builtin_expect(!!(__builtin_fabsf(diff) == 0.5f) && ((int)rounded & 1), 0)) {
rounded = v - diff;
}
return rounded;
}
#define simde_math_roundevenf simde_math_roundevenf
#endif