[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 121/437: Define some extra fp-common macros when sizeof(
From: |
Andy Wingo |
Subject: |
[Guile-commits] 121/437: Define some extra fp-common macros when sizeof(long) == sizeof(int). |
Date: |
Mon, 2 Jul 2018 05:13:57 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 7b330c81b9880c68c50aa2fe3f0f8385d9e576b3
Author: PCPA <address@hidden>
Date: Sat Aug 28 15:44:08 2010 -0300
Define some extra fp-common macros when sizeof(long) == sizeof(int).
---
lightning/fp-common.h | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/lightning/fp-common.h b/lightning/fp-common.h
index 3812a6a..0d76f42 100644
--- a/lightning/fp-common.h
+++ b/lightning/fp-common.h
@@ -91,6 +91,27 @@
#define jit_extr_d_f(rd, rs) jit_movr_d(rd, rs)
#endif
+#if !defined(__WORDSIZE) || __WORDSIZE == 32
+# if !defined(jit_extr_l_f)
+# define jit_extr_l_f(rd, rs) jit_extr_i_f(rd, rs)
+# endif
+# if !defined(jit_extr_l_d)
+# define jit_extr_l_d(rd, rs) jit_extr_i_d(rd, rs)
+# endif
+# if !defined(jit_roundr_f_l)
+# define jit_roundr_f_l(rd, rs) jit_roundr_f_i(rd, rs)
+# define jit_truncr_f_l(rd, rs) jit_truncr_f_i(rd, rs)
+# define jit_floorr_f_l(rd, rs) jit_floorr_f_i(rd, rs)
+# define jit_ceilr_f_l(rd, rs) jit_ceilr_f_i(rd, rs)
+# endif
+# if !defined(jit_roundr_d_l)
+# define jit_roundr_d_l(rd, rs) jit_roundr_d_i(rd, rs)
+# define jit_truncr_d_l(rd, rs) jit_truncr_d_i(rd, rs)
+# define jit_floorr_d_l(rd, rs) jit_floorr_d_i(rd, rs)
+# define jit_ceilr_d_l(rd, rs) jit_ceilr_d_i(rd, rs)
+# endif
+#endif
+
#ifndef jit_beqr_f
#define jit_beqr_f(lab, a, b) jit_beqr_d(lab, a, b)
#define jit_bner_f(lab, a, b) jit_bner_d(lab, a, b)
- [Guile-commits] 03/437: big merge, (continued)
- [Guile-commits] 03/437: big merge, Andy Wingo, 2018/07/02
- [Guile-commits] 111/437: Define extra SSE2 xmmN registers and set JIT_FPTMP to the topmost one., Andy Wingo, 2018/07/02
- [Guile-commits] 94/437: fix problems with i386 32-bit floating point branches, Andy Wingo, 2018/07/02
- [Guile-commits] 115/437: Change JIT_FPR_NUM to 7 to prevent clobber of JIT_FPR(7), Andy Wingo, 2018/07/02
- [Guile-commits] 112/437: Add safety check on number of integer and float arguments on x86_64., Andy Wingo, 2018/07/02
- [Guile-commits] 95/437: another fix to jit_fp_btest, Andy Wingo, 2018/07/02
- [Guile-commits] 110/437: Change jit_getarg_{c, uc, s, us, i, ui} to extr_l to sign extend on 64 bits., Andy Wingo, 2018/07/02
- [Guile-commits] 117/437: Implement x86_64 support for multiple integer and float arguments., Andy Wingo, 2018/07/02
- [Guile-commits] 105/437: fix 64-bit load with sign extension, Andy Wingo, 2018/07/02
- [Guile-commits] 70/437: add _s32P, Andy Wingo, 2018/07/02
- [Guile-commits] 121/437: Define some extra fp-common macros when sizeof(long) == sizeof(int).,
Andy Wingo <=
- [Guile-commits] 77/437: add .gitattributes file, Andy Wingo, 2018/07/02
- [Guile-commits] 44/437: merge some bugfixes, give right meaning to jit_retval_[fd], Andy Wingo, 2018/07/02
- [Guile-commits] 106/437: ldst test update, Andy Wingo, 2018/07/02
- [Guile-commits] 114/437: Change JIT_REXTMP to not clobber 6th argument., Andy Wingo, 2018/07/02
- [Guile-commits] 88/437: move JIT_R1/JIT_R2 to R10/R11 for the x86_64 backend, Andy Wingo, 2018/07/02
- [Guile-commits] 133/437: Correct integer multiplication and add extra test case., Andy Wingo, 2018/07/02
- [Guile-commits] 116/437: Change jit_finish to work with varargs functions in x86_64., Andy Wingo, 2018/07/02
- [Guile-commits] 85/437: add (void) casts for C++ compatibility, Andy Wingo, 2018/07/02
- [Guile-commits] 127/437: Extra cleanup before update to new codebase., Andy Wingo, 2018/07/02
- [Guile-commits] 130/437: Add make rule to build test case dependencies., Andy Wingo, 2018/07/02