openlibm_fenv.h 540 B

1234567891011121314151617181920212223
  1. #ifndef _OPENLIBM_FENV_H
  2. #define _OPENLIBM_FENV_H
  3. #ifdef OPENLIBM_USE_HOST_FENV_H
  4. #include <fenv.h>
  5. #else /* !OPENLIBM_USE_HOST_FENV_H */
  6. #if defined(__arm__)
  7. #include <openlibm_fenv_arm.h>
  8. #elif defined(__aarch64__)
  9. #include <openlibm_fenv_aarch64.h>
  10. #elif defined(__i386__) || defined(__x86_64__)
  11. #include <openlibm_fenv_x86.h>
  12. #elif defined(__powerpc__)
  13. #include <openlibm_fenv_powerpc.h>
  14. #else
  15. #error "Unsupported platform: Try -DOPENLIBM_USE_HOST_FENV_H"
  16. #endif
  17. #endif /* OPENLIBM_USE_HOST_FENV_H */
  18. #endif /* _OPENLIBM_FENV_H */