shithub: sl

ref: bfe38a2454609a60bffe2f59340b075faeca7c4d
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;
}