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
9 lines
164 B
C
Vendored
9 lines
164 B
C
Vendored
#include "libm.h"
|
|
|
|
double copysign(double x, double y) {
|
|
union {double f; uint64_t i;} ux={x}, uy={y};
|
|
ux.i &= -1ULL/2;
|
|
ux.i |= uy.i & 1ULL<<63;
|
|
return ux.f;
|
|
}
|