Files
agent_compositor_test/references/igraph-1.0.1/vendor/f2c/signbit.c
T
Abdelrahman Said a11edf0c53 Add graph references
2026-06-28 13:49:01 +01:00

25 lines
330 B
C

#include "arith.h"
#ifndef Long
#define Long long
#endif
int
#ifdef KR_headers
signbit_f2c(x) double *x;
#else
signbit_f2c(double *x)
#endif
{
#ifdef IEEE_MC68k
if (*(Long*)x & 0x80000000)
return 1;
#else
#ifdef IEEE_8087
if (((Long*)x)[1] & 0x80000000)
return 1;
#endif /*IEEE_8087*/
#endif /*IEEE_MC68k*/
return 0;
}