lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 599c44b7 13/13: Draw attention to atrocious t


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 599c44b7 13/13: Draw attention to atrocious type puns
Date: Mon, 23 May 2022 17:40:27 -0400 (EDT)

branch: master
commit 599c44b722b24d2337b192387036fea408471b34
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Draw attention to atrocious type puns
---
 fdlibm.hpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/fdlibm.hpp b/fdlibm.hpp
index 6f414297..6be690e8 100644
--- a/fdlibm.hpp
+++ b/fdlibm.hpp
@@ -55,6 +55,17 @@
 #   error Expected endianness macros not defined.
 #endif // expected endianness macros not defined
 
+// https://www.netlib.org/fdlibm/readme
+//
+// NOT FIXED YET
+//
+//    3. Compiler failure on non-standard code
+//         Statements like
+//                     *(1+(int*)&t1) = 0;
+//         are not standard C and cause some optimizing compilers (e.g. GCC)
+//         to generate bad code under optimization.    These cases
+//         are to be addressed in the next release.
+
 #if   __FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__
 #   define FDLIBM_HI(x) *(1+(int*)&x)
 #   define FDLIBM_LO(x) *(int*)&x



reply via email to

[Prev in Thread] Current Thread [Next in Thread]