Skip to content

Commit 8592336

Browse files
renaming float128 -> quadmath
1 parent 0b72067 commit 8592336

File tree

7 files changed

+13
-12
lines changed

7 files changed

+13
-12
lines changed

deps/build.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ if (!ispath("../usr/lib"))
77
run(`mkdir ../usr/lib`)
88
end
99

10-
run(`mv libfloat128.$(Libdl.dlext) ../usr/lib`)
10+
run(`mv libquadmath_wrapper.$(Libdl.dlext) ../usr/lib`)
1111

deps/src/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LIBQUADMATH = /usr/lib/x86_64-linux-gnu/libquadmath.so.0
2121
LIBMPFR = /usr/lib/x86_64-linux-gnu/libmpfr.so.4
2222

2323

24-
OBJS = float128.o get_float128.o set_float128.o
24+
OBJS = quadmath_wrapper.o get_float128.o set_float128.o
2525
#LIBS += -lquadmath -L/usr/lib/x86_64-linux-gnu -lmpfr -lgmp -lm
2626
#LIBS += -lquadmath -lm
2727

@@ -41,26 +41,26 @@ else
4141
endif
4242

4343

44-
shared_lib: libfloat128.$(SHLIB_EXT)
44+
shared_lib: libquadmath_wrapper.$(SHLIB_EXT)
4545

4646
%.c.o: %.c %.h
4747
$(CC) $< -fPIC -c -o $@ $(INC) $(CFLAGS) $(FLAGS)
4848

49-
float128.o: float128.c float128.h
50-
gcc -O3 -g -fPIC -c -o float128.o float128.c
49+
quadmath_wrapper.o: quadmath_wrapper.c quadmath_wrapper.h
50+
gcc -O3 -g -fPIC -c -o quadmath_wrapper.o quadmath_wrapper.c
5151

52-
set_float128.o: set_float128.c float128.h
52+
set_float128.o: set_float128.c quadmath_wrapper.h
5353
gcc -O3 -fpic -c -o set_float128.o \
5454
-I$(INCGMP) -I$(INCMPFR) -I$(INCMPARAM) \
5555
set_float128.c
5656

57-
get_float128.o: get_float128.c float128.h
57+
get_float128.o: get_float128.c quadmath_wrapper.h
5858
gcc -O3 -fpic -c -o get_float128.o \
5959
-I$(INCGMP) -I$(INCMPFR) -I$(INCMPARAM) \
6060
get_float128.c
6161

6262

63-
libfloat128.$(SHLIB_EXT): $(OBJS)
63+
libquadmath_wrapper.$(SHLIB_EXT): $(OBJS)
6464
$(CC) $(OBJS) -rdynamic -shared -o $@ $(LDFLAGS) $(LIBS)
6565

6666
clean:

deps/src/get_float128.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ mpfr_get_float128 (mpfr_srcptr x, mpfr_rnd_t rnd_mode)
108108

109109

110110
#include <stdint.h>
111-
#include "float128.h"
111+
#include "quadmath_wrapper.h"
112112

113113
myfloat128
114114
mpfr_get_float128_xxx (mpfr_srcptr x, mpfr_rnd_t rnd_mode)

deps/src/float128.c renamed to deps/src/quadmath_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <stdio.h>
22
#include <stdint.h>
33
#include <quadmath.h>
4-
#include "float128.h"
4+
#include "quadmath_wrapper.h"
55

66
myfloat128 convert_qd(double a) { myfloat128 res; F(res) = a; return res; }
77
myfloat128 convert_qui(unsigned long a) { myfloat128 res; F(res) = a; return res; }
File renamed without changes.

deps/src/set_float128.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
2222
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
2323

2424
#define MPFR_WANT_FLOAT128
25+
#ifdef MPFR_WANT_FLOAT128
26+
2527
#define IEEE_FLOAT128_MANT_DIG 113
2628
#define MPFR_USE_THREAD_SAFE
2729

@@ -31,7 +33,6 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
3133
#define MPFR_NEED_LONGLONG_H
3234
#include "mpfr-impl.h"
3335

34-
#ifdef MPFR_WANT_FLOAT128
3536

3637
int
3738
mpfr_set_float128 (mpfr_ptr r, __float128 d, mpfr_rnd_t rnd_mode)
@@ -184,7 +185,7 @@ mpfr_set_float128 (mpfr_ptr r, __float128 d, mpfr_rnd_t rnd_mode)
184185
#endif /* MPFR_WANT_FLOAT128 */
185186

186187
#include <stdint.h>
187-
#include "float128.h"
188+
#include "quadmath_wrapper.h"
188189
int
189190
mpfr_set_float128_xxx (mpfr_ptr r, myfloat128 d, mpfr_rnd_t rnd_mode)
190191
{
File renamed without changes.

0 commit comments

Comments
 (0)