fenv: also recognize __sh__ as compiler macro in the port

This commit is contained in:
Lephenixnoir 2023-12-06 20:36:24 +01:00
parent 9828d2e3f2
commit 64687ce123
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
3 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@
#include <openlibm_fenv_mips.h> #include <openlibm_fenv_mips.h>
#elif defined(__s390__) #elif defined(__s390__)
#include <openlibm_fenv_s390.h> #include <openlibm_fenv_s390.h>
#elif defined(__sh3__) #elif defined(__sh3__) || defined(__sh__)
#include <openlibm_fenv_sh3eb.h> #include <openlibm_fenv_sh3eb.h>
#else #else
#error "Unsupported platform" #error "Unsupported platform"

View file

@ -34,7 +34,7 @@
#else #else
#ifdef __ELF__ #ifdef __ELF__
#ifdef __STDC__ #ifdef __STDC__
#if defined(__sh3__) #if defined(__sh3__) || defined(__sh__)
#define openlibm_weak_reference(sym,alias) \ #define openlibm_weak_reference(sym,alias) \
__asm__(".weak _" #alias); \ __asm__(".weak _" #alias); \
__asm__(".equ _" #alias ", _" #sym) __asm__(".equ _" #alias ", _" #sym)
@ -42,7 +42,7 @@
#define openlibm_weak_reference(sym,alias) \ #define openlibm_weak_reference(sym,alias) \
__asm__(".weak " #alias); \ __asm__(".weak " #alias); \
__asm__(".equ " #alias ", " #sym) __asm__(".equ " #alias ", " #sym)
#endif /* __sh3__ */ #endif /* __sh3__ || __sh__ */
#ifdef __warn_references #ifdef __warn_references
#define openlibm_warn_references(sym,msg) __warn_references(sym,msg) #define openlibm_warn_references(sym,msg) __warn_references(sym,msg)
#else #else

View file

@ -43,7 +43,7 @@
#include "mips_fpmath.h" #include "mips_fpmath.h"
#elif defined(__s390__) #elif defined(__s390__)
#include "s390_fpmath.h" #include "s390_fpmath.h"
#elif defined(__sh3__) #elif defined(__sh3__) || defined(__sh__)
#include "sh3eb_fpmath.h" #include "sh3eb_fpmath.h"
#endif #endif