[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master af8d3ac0 21/22: Rationalize indentation of pr
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master af8d3ac0 21/22: Rationalize indentation of preprocessor directives |
Date: |
Fri, 20 May 2022 22:43:43 -0400 (EDT) |
branch: master
commit af8d3ac0d564eecd72ae34e4f8ec51ce05691909
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Rationalize indentation of preprocessor directives
---
fdlibm_expm1.c | 24 ++++++++++++------------
fdlibm_log1p.c | 24 ++++++++++++------------
2 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/fdlibm_expm1.c b/fdlibm_expm1.c
index 44e2a1f4..5aa6c6ac 100644
--- a/fdlibm_expm1.c
+++ b/fdlibm_expm1.c
@@ -53,27 +53,27 @@
#if !defined __FLOAT_WORD_ORDER__ || \
!defined __ORDER_BIG_ENDIAN__ || \
!defined __ORDER_LITTLE_ENDIAN__
-#error Expected ndianness macros not defined.
+# error Expected endianness macros not defined.
#endif // expected endianness macros not defined
#if __FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__
-#define FDLIBM_HI(x) *(1+(int*)&x)
-#define FDLIBM_LO(x) *(int*)&x
-#define FDLIBM_HIp(x) *(1+(int*)x)
-#define FDLIBM_LOp(x) *(int*)x
+# define FDLIBM_HI(x) *(1+(int*)&x)
+# define FDLIBM_LO(x) *(int*)&x
+# define FDLIBM_HIp(x) *(1+(int*)x)
+# define FDLIBM_LOp(x) *(int*)x
#elif __FLOAT_WORD_ORDER__ == __ORDER_BIG_ENDIAN__
-#define FDLIBM_HI(x) *(int*)&x
-#define FDLIBM_LO(x) *(1+(int*)&x)
-#define FDLIBM_HIp(x) *(int*)x
-#define FDLIBM_LOp(x) *(1+(int*)x)
+# define FDLIBM_HI(x) *(int*)&x
+# define FDLIBM_LO(x) *(1+(int*)&x)
+# define FDLIBM_HIp(x) *(int*)x
+# define FDLIBM_LOp(x) *(1+(int*)x)
#else // unknown endianness
-#error Unknown endianness.
+# error Unknown endianness.
#endif // unknown endianness
#if defined __STDC__
-#define FDLIBM_PROTOTYPE(p) p
+# define FDLIBM_PROTOTYPE(p) p
#else // !defined __STDC__
-#define FDLIBM_PROTOTYPE(p) ()
+# define FDLIBM_PROTOTYPE(p) ()
#endif // !defined __STDC__
/*
diff --git a/fdlibm_log1p.c b/fdlibm_log1p.c
index 3834aa50..bb1ee8b0 100644
--- a/fdlibm_log1p.c
+++ b/fdlibm_log1p.c
@@ -51,27 +51,27 @@
#if !defined __FLOAT_WORD_ORDER__ || \
!defined __ORDER_BIG_ENDIAN__ || \
!defined __ORDER_LITTLE_ENDIAN__
-#error Expected ndianness macros not defined.
+# error Expected endianness macros not defined.
#endif // expected endianness macros not defined
#if __FLOAT_WORD_ORDER__ == __ORDER_LITTLE_ENDIAN__
-#define FDLIBM_HI(x) *(1+(int*)&x)
-#define FDLIBM_LO(x) *(int*)&x
-#define FDLIBM_HIp(x) *(1+(int*)x)
-#define FDLIBM_LOp(x) *(int*)x
+# define FDLIBM_HI(x) *(1+(int*)&x)
+# define FDLIBM_LO(x) *(int*)&x
+# define FDLIBM_HIp(x) *(1+(int*)x)
+# define FDLIBM_LOp(x) *(int*)x
#elif __FLOAT_WORD_ORDER__ == __ORDER_BIG_ENDIAN__
-#define FDLIBM_HI(x) *(int*)&x
-#define FDLIBM_LO(x) *(1+(int*)&x)
-#define FDLIBM_HIp(x) *(int*)x
-#define FDLIBM_LOp(x) *(1+(int*)x)
+# define FDLIBM_HI(x) *(int*)&x
+# define FDLIBM_LO(x) *(1+(int*)&x)
+# define FDLIBM_HIp(x) *(int*)x
+# define FDLIBM_LOp(x) *(1+(int*)x)
#else // unknown endianness
-#error Unknown endianness.
+# error Unknown endianness.
#endif // unknown endianness
#if defined __STDC__
-#define FDLIBM_PROTOTYPE(p) p
+# define FDLIBM_PROTOTYPE(p) p
#else // !defined __STDC__
-#define FDLIBM_PROTOTYPE(p) ()
+# define FDLIBM_PROTOTYPE(p) ()
#endif // !defined __STDC__
/*
- [lmi-commits] [lmi] master updated (c4515973 -> 6c12b4ea), Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master c4e7bd93 01/22: Import expm1() and log1p() from fdlibm, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master e9f2f432 04/22: Canonicalize #include directives, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 5cc39664 03/22: Move a closing brace, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 1fd91fbf 10/22: Rename high- and low-word macros, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master fa7bbb53 05/22: Prefer lmi style, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 6b073770 08/22: Expunge unreferenced fdlibm versioning, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master cadb36d4 14/22: Don't include any fdlibm header, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 5b1ef5bb 15/22: Add prototypes, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master dd3abb11 18/22: Demonstrate a defect, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master af8d3ac0 21/22: Rationalize indentation of preprocessor directives,
Greg Chicares <=
- [lmi-commits] [lmi] master 324e171e 02/22: Rectify whitespace, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 15b1aa35 11/22: Add license and copyright boilerplate, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 4ec9da1f 12/22: Rename fdlibm sources, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master e8a859a3 06/22: Rename prototyping macro, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 078e9a1c 16/22: Ignore certain diagnostics, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 2d514bdc 09/22: Allow some common macros, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 1646f4c0 13/22: Rename fdlibm entry points, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 75dc2686 17/22: Write unambiguous braces, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 9e608afe 20/22: Remove debugging output for tests that now succeed, Greg Chicares, 2022/05/20
- [lmi-commits] [lmi] master 2563b0f6 07/22: Expunge prototypes for unreferenced functions, Greg Chicares, 2022/05/20