[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
- [lmi-commits] [lmi] master updated (ad1f8a2f -> 599c44b7), Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 38dd359d 04/13: Apply 'fdlibm*.c' changes to 'fdlibm.h', Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master a456d40d 03/13: Expunge unwanted part of fdlibm header, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 9d7e3be1 02/13: Import header from fdlibm, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master e5850c2a 12/13: Import Naohiko Shimizu's NetBSD performance improvements, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master bfb73bb2 09/13: Use fdlibm header more broadly, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 599c44b7 13/13: Draw attention to atrocious type puns,
Greg Chicares <=
- [lmi-commits] [lmi] master 164db076 10/13: Assume __STDC__ for fdlibm, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 7d5c739b 01/13: Expunge unused declarations and macro, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master d7294669 06/13: Add include guards; include a header required by lmi, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master adf263fe 11/13: Assume __STDC__ everywhere appropriate, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master edb56e9b 05/13: Add license and copyright boilerplate, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 50b2645a 08/13: Use fdlibm header, Greg Chicares, 2022/05/23
- [lmi-commits] [lmi] master 89966e80 07/13: Rename fdlibm header, Greg Chicares, 2022/05/23