41 lines
763 B
C
41 lines
763 B
C
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdarg.h>
|
||
|
#include <math.h>
|
||
|
#include <locale.h>
|
||
|
#include "ieee754.h"
|
||
|
#include "dtypes.h"
|
||
|
#include "timefuncs.h"
|
||
|
#include "ios.h"
|
||
|
#include "random.h"
|
||
|
#include "utf8.h"
|
||
|
|
||
|
double D_PNAN;
|
||
|
double D_NNAN;
|
||
|
double D_PINF;
|
||
|
double D_NINF;
|
||
|
float F_PNAN;
|
||
|
float F_NNAN;
|
||
|
float F_PINF;
|
||
|
float F_NINF;
|
||
|
|
||
|
int locale_is_utf8;
|
||
|
|
||
|
void llt_init()
|
||
|
{
|
||
|
locale_is_utf8 = u8_is_locale_utf8(setlocale(LC_ALL, ""));
|
||
|
|
||
|
randomize();
|
||
|
|
||
|
ios_init_stdstreams();
|
||
|
|
||
|
D_PNAN = strtod("+NaN",NULL);
|
||
|
D_NNAN = -strtod("+NaN",NULL);
|
||
|
D_PINF = strtod("+Inf",NULL);
|
||
|
D_NINF = strtod("-Inf",NULL);
|
||
|
F_PNAN = strtof("+NaN",NULL);
|
||
|
F_NNAN = -strtof("+NaN",NULL);
|
||
|
F_PINF = strtof("+Inf",NULL);
|
||
|
F_NINF = strtof("-Inf",NULL);
|
||
|
}
|