openlibm_fenv.h 536 B

123456789101112131415161718192021
  1. #ifdef OPENLIBM_USE_HOST_FENV_H
  2. #include <fenv.h>
  3. #else /* !OPENLIBM_USE_HOST_FENV_H */
  4. #if defined(__aarch64__) || defined(__arm__)
  5. #include <openlibm_fenv_arm.h>
  6. #elif defined(__x86_64__)
  7. #include <openlibm_fenv_amd64.h>
  8. #elif defined(__i386__)
  9. #include <openlibm_fenv_i387.h>
  10. #elif defined(__powerpc__)
  11. #include <openlibm_fenv_powerpc.h>
  12. #elif defined(__mips__)
  13. #include <openlibm_fenv_mips.h>
  14. #elif defined(__s390__)
  15. #include <openlibm_fenv_s390.h>
  16. #else
  17. #error "Unsupported platform"
  18. #endif
  19. #endif /* OPENLIBM_USE_HOST_FENV_H */