shithub: sl

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