mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
830dc991f3
This fixes #113, based on files from FreeBSD. Tested on machine hosted by [OSUOSL](http://osuosl.org/services/powerdev/).
17 lines
400 B
C
17 lines
400 B
C
#ifdef OPENLIBM_USE_HOST_FENV_H
|
|
#include <fenv.h>
|
|
#else /* !OPENLIBM_USE_HOST_FENV_H */
|
|
|
|
#if defined(__arm__)
|
|
#include <openlibm_fenv_arm.h>
|
|
#elif defined(__x86_64__)
|
|
#include <openlibm_fenv_amd64.h>
|
|
#elif defined(__i386__)
|
|
#include <openlibm_fenv_i387.h>
|
|
#elif defined(__powerpc__)
|
|
#include <openlibm_fenv_powerpc.h>
|
|
#else
|
|
#error "Unsupported platform"
|
|
#endif
|
|
|
|
#endif /* OPENLIBM_USE_HOST_FENV_H */
|