projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* device/lib/Makefile.in (Z80SOURCES): enabled float support
[fw/sdcc]
/
support
/
regression
/
tests
/
float_trans.c
diff --git
a/support/regression/tests/float_trans.c
b/support/regression/tests/float_trans.c
index 6431baf664888cd93c85eb2005dc40a37449a0d6..c068b14234fc6bccd585b79a6ae63a50951095fe 100644
(file)
--- a/
support/regression/tests/float_trans.c
+++ b/
support/regression/tests/float_trans.c
@@
-11,22
+11,20
@@
void
testTrans(void)
{
void
testTrans(void)
{
-#if !defined(SDCC_z80) && !PORT_HOST
-# ifdef SQRTF
- ASSERT(fabsf (sqrtf (5.0) - 2.23606801) < 0.00001);
-# endif
-# ifdef LOGF
+#ifdef SQRTF
+ ASSERT(fabsf (sqrtf (5.0) - 2.23606801) < 0.00001);
+#endif
+#ifdef LOGF
ASSERT(fabsf (logf (124.0) - 4.82028150) < 0.00001);
ASSERT(fabsf (log10f (124.0) - 2.09342169) < 0.00001);
ASSERT(fabsf (logf (124.0) - 4.82028150) < 0.00001);
ASSERT(fabsf (log10f (124.0) - 2.09342169) < 0.00001);
+#endif
+#ifdef POWF
+ /* too big for small model */
+# ifndef SDCC_MODEL_SMALL
+ ASSERT(fabsf (powf (1.5, 2.0) - 2.24999976) < 0.00001);
# endif
# endif
-# ifdef POWF
- /* too big for small modell */
-# ifndef SDCC_MODEL_SMALL
- ASSERT(fabsf (powf (1.5, 2.0) - 2.24999976) < 0.00001);
-# endif
-# endif
-# ifdef TANF
+#endif
+#ifdef TANF
ASSERT(fabsf (tanf (1.6) - -34.23250579) < 0.00001);
ASSERT(fabsf (tanf (1.6) - -34.23250579) < 0.00001);
-# endif
#endif
}
#endif
}