mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 04:23:41 +01:00
fenv: also recognize __sh__ as compiler macro in the port
This commit is contained in:
parent
9828d2e3f2
commit
64687ce123
3 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue