shithub: sl

ref: 53a2fafa398442453ae0e0980005f16b671d6400
dir: /3rd/mp/test/main.c/

View raw version
#include "platform.h"
#include "mp.h"
#include "dat.h"
#include "fns.h"
#include "ieee754.h"

double D_PNAN, D_NNAN, D_PINF, D_NINF;
int anyfail = 0;

void
prng(uint8_t *p, int n)
{
	while(n-- > 0)
		*p++ = rand();
}

int
main()
{
	D_PNAN = D_NNAN = strtod("+NaN", nil);
	D_PINF = D_NINF = strtod("+Inf", nil);

	convtests();
	tests();
	return anyfail;
}