mirror of
https://github.com/ziglang/zig.git
synced 2026-02-01 20:23:38 +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
11 lines
134 B
C
Vendored
11 lines
134 B
C
Vendored
#include <math.h>
|
|
|
|
float fdimf(float x, float y)
|
|
{
|
|
if (isnan(x))
|
|
return x;
|
|
if (isnan(y))
|
|
return y;
|
|
return x > y ? x - y : 0;
|
|
}
|