From 661f59838235815b5073a0ef95f410003639519e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 16:14:04 -0400 Subject: rename non-compiled files to *.h --- src/complex/I.c | 13 ------------- src/complex/I.h | 13 +++++++++++++ src/complex/_Complex_I.c | 12 ------------ src/complex/_Complex_I.h | 12 ++++++++++++ src/complex/_Imaginary_I.c | 15 --------------- src/complex/_Imaginary_I.h | 15 +++++++++++++++ src/complex/complex.c | 7 ------- src/complex/complex.h | 7 +++++++ src/complex/imaginary.c | 13 ------------- src/complex/imaginary.h | 13 +++++++++++++ 10 files changed, 60 insertions(+), 60 deletions(-) delete mode 100644 src/complex/I.c create mode 100644 src/complex/I.h delete mode 100644 src/complex/_Complex_I.c create mode 100644 src/complex/_Complex_I.h delete mode 100644 src/complex/_Imaginary_I.c create mode 100644 src/complex/_Imaginary_I.h delete mode 100644 src/complex/complex.c create mode 100644 src/complex/complex.h delete mode 100644 src/complex/imaginary.c create mode 100644 src/complex/imaginary.h (limited to 'src/complex') diff --git a/src/complex/I.c b/src/complex/I.c deleted file mode 100644 index de7929a8..00000000 --- a/src/complex/I.c +++ /dev/null @@ -1,13 +0,0 @@ -#include - -#ifdef __STDC_IEC_559_COMPLEX__ -#define I _Imaginary_I -#else -#define I _Complex_I -#endif - -/* see appendix G for whether or not to set __STDC_IEC_559_COMPLEX__ == 1 */ - -/* -STDC(199901) -*/ diff --git a/src/complex/I.h b/src/complex/I.h new file mode 100644 index 00000000..de7929a8 --- /dev/null +++ b/src/complex/I.h @@ -0,0 +1,13 @@ +#include + +#ifdef __STDC_IEC_559_COMPLEX__ +#define I _Imaginary_I +#else +#define I _Complex_I +#endif + +/* see appendix G for whether or not to set __STDC_IEC_559_COMPLEX__ == 1 */ + +/* +STDC(199901) +*/ diff --git a/src/complex/_Complex_I.c b/src/complex/_Complex_I.c deleted file mode 100644 index beded4ab..00000000 --- a/src/complex/_Complex_I.c +++ /dev/null @@ -1,12 +0,0 @@ -#include - -#define _Complex_I \ - (((union { \ - float _Complex __c; \ - float __f[2]; \ - }){ .__f = { 0.0, 1.0 } }).__c) - - -/* -STDC(199901) -*/ diff --git a/src/complex/_Complex_I.h b/src/complex/_Complex_I.h new file mode 100644 index 00000000..beded4ab --- /dev/null +++ b/src/complex/_Complex_I.h @@ -0,0 +1,12 @@ +#include + +#define _Complex_I \ + (((union { \ + float _Complex __c; \ + float __f[2]; \ + }){ .__f = { 0.0, 1.0 } }).__c) + + +/* +STDC(199901) +*/ diff --git a/src/complex/_Imaginary_I.c b/src/complex/_Imaginary_I.c deleted file mode 100644 index 052ecfc5..00000000 --- a/src/complex/_Imaginary_I.c +++ /dev/null @@ -1,15 +0,0 @@ -#include - -#ifdef __STDC_IEC_559_COMPLEX__ -#define _Imaginary_I \ - (((union { \ - float _Imaginary __i; \ - float __f; \ - }){ .__f = 1.0 }).__i) -#endif - -/* This should only be defined if imaginary types are supported. */ - -/* -STDC(199901) -*/ diff --git a/src/complex/_Imaginary_I.h b/src/complex/_Imaginary_I.h new file mode 100644 index 00000000..052ecfc5 --- /dev/null +++ b/src/complex/_Imaginary_I.h @@ -0,0 +1,15 @@ +#include + +#ifdef __STDC_IEC_559_COMPLEX__ +#define _Imaginary_I \ + (((union { \ + float _Imaginary __i; \ + float __f; \ + }){ .__f = 1.0 }).__i) +#endif + +/* This should only be defined if imaginary types are supported. */ + +/* +STDC(199901) +*/ diff --git a/src/complex/complex.c b/src/complex/complex.c deleted file mode 100644 index 9649b03c..00000000 --- a/src/complex/complex.c +++ /dev/null @@ -1,7 +0,0 @@ -#include -#define complex _Complex - -/* -STDC(199901) -LINK(m) -*/ diff --git a/src/complex/complex.h b/src/complex/complex.h new file mode 100644 index 00000000..9649b03c --- /dev/null +++ b/src/complex/complex.h @@ -0,0 +1,7 @@ +#include +#define complex _Complex + +/* +STDC(199901) +LINK(m) +*/ diff --git a/src/complex/imaginary.c b/src/complex/imaginary.c deleted file mode 100644 index 4b3da25d..00000000 --- a/src/complex/imaginary.c +++ /dev/null @@ -1,13 +0,0 @@ -#include - -#ifdef __STDC_IEC_559_COMPLEX__ -#define imaginary _Imaginary -#endif - -/* This should only be defined if imaginary types are supported. */ - -/* -STDC(199901) -LINK(m) -*/ - diff --git a/src/complex/imaginary.h b/src/complex/imaginary.h new file mode 100644 index 00000000..4b3da25d --- /dev/null +++ b/src/complex/imaginary.h @@ -0,0 +1,13 @@ +#include + +#ifdef __STDC_IEC_559_COMPLEX__ +#define imaginary _Imaginary +#endif + +/* This should only be defined if imaginary types are supported. */ + +/* +STDC(199901) +LINK(m) +*/ + -- cgit v1.2.1