Minor fix-ups for Darwin PowerPC (#303)

* openlibm_fenv.h: fix PowerPC macro for Darwin

* openlibm_fenv_powerpc.h: check if __BYTE_ORDER__ is actually defined

* fpmath.h: fix PowerPC macro for Darwin
This commit is contained in:
Sergey Fedorov
2024-06-20 03:01:51 +08:00
committed by GitHub
parent b3a6e991a4
commit d9f2b0f21a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
#include <openlibm_fenv_amd64.h>
#elif defined(__i386__)
#include <openlibm_fenv_i387.h>
#elif defined(__powerpc__) || defined(__ppc__)
#elif defined(__powerpc__) || defined(__POWERPC__)
#include <openlibm_fenv_powerpc.h>
#elif defined(__mips__)
#include <openlibm_fenv_mips.h>
+1 -1
View File
@@ -97,7 +97,7 @@ extern const fenv_t __fe_dfl_env;
union __fpscr {
double __d;
struct {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
fenv_t __reg;
__uint32_t __junk;
#else
+1 -1
View File
@@ -37,7 +37,7 @@
#else
#include "i386_fpmath.h"
#endif
#elif defined(__powerpc__) || defined(__ppc__)
#elif defined(__powerpc__) || defined(__POWERPC__)
#include "powerpc_fpmath.h"
#elif defined(__mips__)
#include "mips_fpmath.h"