24 lines · 490 B · C
RawDownload
#include "platform.h"#include "inc/nan.h"#include "inc/ieee754.h" double D_NNAN, D_NINF;#if defined(__TINYC__) || defined(__plan9__)double D_PNAN, D_PINF;#endif voidnan_init(void){#if defined(__TINYC__) || defined(__plan9__)	D_PNAN = strtod("+NaN", nil);	D_PINF = strtod("+Inf", nil);#endif	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;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t