haiku/headers/posix/fenv.h
Alexander von Gluck IV 372b901dfe riscv: cleanup architecture macro checks
* We really should get out of the habbit of making up
  our own architecture defines.
* __riscv with an additional  __riscv_xlen is the
  standard that developed... let's just roll with it.

Change-Id: Ieb777d48340ae25a6d66f66133afa0ec5c6da9b6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4402
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2021-09-01 18:04:59 +00:00

26 lines
587 B
C

#ifndef _FENV_H
#define _FENV_H
#if defined(__i386__)
# include <arch/x86/fenv.h>
#elif defined(__x86_64__)
# include <arch/x86_64/fenv.h>
#elif defined(__arm__)
# include <arch/arm/fenv.h>
#elif defined(__aarch64__)
# include <arch/arm64/fenv.h>
#elif defined(__POWERPC__)
# include <arch/ppc/fenv.h>
#elif (defined(__riscv) && __riscv_xlen == 64)
# include <arch/riscv64/fenv.h>
#elif defined(__sparc__)
# include <arch/sparc64/fenv.h>
#elif defined(__M68K__)
# include <arch/m68k/fenv.h>
#else
# error There is no fenv.h for this architecture!
#endif
#endif /* _FENV_H */