projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add nofpu subarchs to the sh arch, and properly detect compiler's fpu config
[musl]
/
arch
/
sh
/
bits
/
fenv.h
diff --git
a/arch/sh/bits/fenv.h
b/arch/sh/bits/fenv.h
index
f454a15
..
7f1b8b6
100644
(file)
--- a/
arch/sh/bits/fenv.h
+++ b/
arch/sh/bits/fenv.h
@@
-1,3
+1,10
@@
+#ifndef __SH_FPU_ANY__
+
+#define FE_ALL_EXCEPT 0
+#define FE_TONEAREST 0
+
+#else
+
#define FE_TONEAREST 0
#define FE_TOWARDZERO 1
@@
-8,6
+15,8
@@
#define FE_INVALID 0x40
#define FE_ALL_EXCEPT 0x7c
+#endif
+
typedef unsigned long fexcept_t;
typedef struct {