mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 06:15:21 +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
130 B
C
11 lines
130 B
C
#include <math.h>
|
|
|
|
float logbf(float x)
|
|
{
|
|
if (!isfinite(x))
|
|
return x * x;
|
|
if (x == 0)
|
|
return -1/(x*x);
|
|
return ilogbf(x);
|
|
}
|