xref: /haiku/headers/posix/fenv.h (revision 372b901dfeada686207d00bbcce456f748bbda12)
138ecc1a7SArtur Wyszynski #ifndef _FENV_H
238ecc1a7SArtur Wyszynski #define _FENV_H
338ecc1a7SArtur Wyszynski 
45ffbe7d7SAugustin Cavalier #if defined(__i386__)
538ecc1a7SArtur Wyszynski #  include <arch/x86/fenv.h>
63fde5350SAlex Smith #elif defined(__x86_64__)
797901ec5SIngo Weinhold #  include <arch/x86_64/fenv.h>
89642f770SAlexander von Gluck IV #elif defined(__arm__)
938ecc1a7SArtur Wyszynski #  include <arch/arm/fenv.h>
101f52c921SJaroslaw Pelczar #elif defined(__aarch64__)
111f52c921SJaroslaw Pelczar #  include <arch/arm64/fenv.h>
1238ecc1a7SArtur Wyszynski #elif defined(__POWERPC__)
1338ecc1a7SArtur Wyszynski #  include <arch/ppc/fenv.h>
14*372b901dSAlexander von Gluck IV #elif (defined(__riscv) && __riscv_xlen == 64)
1515fb7d88SAlexander von Gluck IV #  include <arch/riscv64/fenv.h>
162de61640SAdrien Destugues #elif defined(__sparc__)
172de61640SAdrien Destugues #  include <arch/sparc64/fenv.h>
18425515d0SFrançois Revol #elif defined(__M68K__)
19425515d0SFrançois Revol #  include <arch/m68k/fenv.h>
2038ecc1a7SArtur Wyszynski #else
2138ecc1a7SArtur Wyszynski #  error There is no fenv.h for this architecture!
2238ecc1a7SArtur Wyszynski #endif
2338ecc1a7SArtur Wyszynski 
2438ecc1a7SArtur Wyszynski #endif /* _FENV_H */
2538ecc1a7SArtur Wyszynski 
26