fork download
  1. int isnan (float x)
  2. {
  3. union { float f; uint8_t b[4]; } u;
  4. u.f = x;
  5. return (u.b[3] & 0x7F) == 0x7F && (u.b[2] & 0x80) == 0x80 && ((u.b[2] & 0x7F) != 0 || u.b[1] != 0 || u.b[0] != 0);
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:5: warning: conflicting types for built-in function 'isnan'
 int isnan (float x)
     ^
prog.c: In function 'isnan':
prog.c:3:22: error: unknown type name 'uint8_t'
     union { float f; uint8_t b[4]; } u;
                      ^
stdout
Standard output is empty