shithub: sl

ref: ad50f75a7c9276fa04a0e91c54be24d2cec74b28
dir: /src/nan.c/

View raw version
#include "platform.h"
#include "nan.h"
#include "ieee754.h"

double D_NNAN, D_NINF;

void
nan_init(void)
{
	union ieee754_double *d;
	D_NNAN = D_PNAN;
	d = (union ieee754_double *)&D_NNAN;
	d->ieee.negative = 1;
	D_NINF = D_PINF;
	d = (union ieee754_double *)&D_NINF;
	d->ieee.negative = 1;
}