Skip to content

Commit

Permalink
arm: remove AARCH64 ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 15, 2025
1 parent abc82aa commit bca7b84
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/openlibm_fenv_arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ extern const fenv_t __fe_dfl_env;
#define _FPUSW_SHIFT 16
#define _ENABLE_MASK (FE_ALL_EXCEPT << _FPUSW_SHIFT)

#if defined(__aarch64__)
#define __rfs(__fpsr) __asm __volatile("mrs %0,fpsr" : "=r" (*(__fpsr)))
#define __wfs(__fpsr) __asm __volatile("msr fpsr,%0" : : "r" (__fpsr))
/* Test for hardware support for ARM floating point operations, explicitly
checking for float and double support, see "ARM C Language Extensions", 6.5.1 */
#elif defined(__ARM_FP) && (__ARM_FP & 0x0C) != 0
#if defined(__ARM_FP) && (__ARM_FP & 0x0C) != 0
#define __rfs(__fpsr) __asm __volatile("vmrs %0,fpscr" : "=&r" (*(__fpsr)))
#define __wfs(__fpsr) __asm __volatile("vmsr fpscr,%0" : : "r" (__fpsr))
#else
Expand Down

0 comments on commit bca7b84

Please sign in to comment.