Skip to content

Commit

Permalink
Minor fix-ups for Darwin PowerPC (#303)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
barracuda156 authored Jun 19, 2024
1 parent b3a6e99 commit d9f2b0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/openlibm_fenv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion include/openlibm_fenv_powerpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/fpmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d9f2b0f

Please sign in to comment.