mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
also start prefering NtDll API. so far: * NtQueryInformationFile * NtClose adds a performance workaround for windows unicode conversion. but that should probably be removed before merging
15 lines
178 B
C
Vendored
15 lines
178 B
C
Vendored
#include <math.h>
|
|
|
|
#if defined(__HTM__) || __ARCH__ >= 9
|
|
|
|
double fabs(double x)
|
|
{
|
|
__asm__ ("lpdbr %0, %1" : "=f"(x) : "f"(x));
|
|
return x;
|
|
}
|
|
|
|
#else
|
|
|
|
#include "../fabs.c"
|
|
|
|
#endif
|