Cleanup last few build details
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
a8a5cea9fb
commit
60d2651f2e
13 changed files with 34 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue