Skip to content

Commit c58a83e

Browse files
try other wrong calling convention
1 parent 2c771dd commit c58a83e

File tree

4 files changed

+185
-212
lines changed

4 files changed

+185
-212
lines changed

deps/src/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
all: shared_lib
22

3+
CC = gcc
4+
35
ifeq (exists, $(shell [ -e Make.user ] && echo exists ))
46
include Make.user
57
endif
@@ -44,20 +46,18 @@ endif
4446

4547
shared_lib: libquadmath_wrapper.$(SHLIB_EXT)
4648

47-
%.c.o: %.c %.h
48-
$(CC) $< -fPIC -c -o $@ $(INC) $(CFLAGS) $(FLAGS)
4949

5050
quadmath_wrapper.o: quadmath_wrapper.c quadmath_wrapper.h
51-
gcc -O3 -g -fPIC -c -o quadmath_wrapper.o quadmath_wrapper.c
51+
$(CC) -O3 -g -fPIC -c -o quadmath_wrapper.o quadmath_wrapper.c
5252

5353
set_float128.o: set_float128.c quadmath_wrapper.h
54-
gcc -O3 -fpic -c -o set_float128.o \
54+
$(CC) -O3 -fpic -c -o set_float128.o \
5555
-I$(INC) set_float128.c
5656
# -I$(INCGMP) -I$(INCMPFR) -I$(INCMPARAM) \
5757
# set_float128.c
5858

5959
get_float128.o: get_float128.c quadmath_wrapper.h
60-
gcc -O3 -fpic -c -o get_float128.o \
60+
$(CC) -O3 -fpic -c -o get_float128.o \
6161
-I$(INC) get_float128.c
6262
# -I$(INCGMP) -I$(INCMPFR) -I$(INCMPARAM) \
6363
# get_float128.c

deps/src/get_float128.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ mpfr_get_float128 (mpfr_srcptr x, mpfr_rnd_t rnd_mode)
113113
myfloat128
114114
mpfr_get_float128_xxx (mpfr_srcptr x, mpfr_rnd_t rnd_mode)
115115
{
116-
myfloat128 res;
117-
F(res) = mpfr_get_float128 (x, rnd_mode);
118-
return res;
116+
__float128 res;
117+
res = mpfr_get_float128 (x, rnd_mode);
118+
return W(res);
119119
}
120120

121121

0 commit comments

Comments
 (0)