This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001539] Single precision floating point math library


Please do not reply to this email, use the link below.

http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001539

--- Comment #26 from Ilija Kocho <ilijak@siva.com.mk> ---
John, thank you for the testing and comment. In meantime I have been working on
this bug and I am going to post patch(es) later today.


(In reply to comment #25)
> Ilija, I have tested the current patches on the "psim" target (big-endian).
> 
> In the default configuration (CYGNUM_LIBM_COMPATIBILITY), I see 5 libm test
> failures (out of tolerance):  frexpf, asinf, logf, acosf, log10f
> 
> In IEEE-only configuration (CYGSEM_LIBM_COMPAT_IEEE_ONLY), I get a build
> error (EDOM undeclared). If I fix the build error by including <errno.h>
> unconditionally from vector_support_float.h 

To be honest I don't know the implications for including errno.h on this
condition. This header is a copy of vector_support.h adapted for SP floats.
Note: An explanation is appreciated.

For the time being, to be on a safe side I would put:

 #ifndef CYGSEM_LIBM_COMPAT_IEEE_ONLY
 # include <errno.h>                // For Cyg_ErrNo
+#else
+# ifndef EDOM
+#   define EDOM 33
+# endif
 #endif

>then I see 1 libm test failure
> (out of tolerance):  frexpf
> 
> I hope this helps.

I do not recall such failures (It's been a long time when I last tested on
Cortex-M), but now I'll run the tests with both hard and soft FP.

Ilija

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]