summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2011-10-09 20:08:14 +0200
committerTorbjorn Granlund <tege@gmplib.org>2011-10-09 20:08:14 +0200
commita18cb91a947f890060e2dd3f3bb2275e60fd4726 (patch)
tree58ca48687e5ab23da67774460f6f25809e5a44bc /longlong.h
parent31b63b8ef589f184828f53370a298b9a23536770 (diff)
downloadgmp-a18cb91a947f890060e2dd3f3bb2275e60fd4726.tar.gz
(s390x add_ssaaaa): Remove algsi/slgsi until we support z10.
Diffstat (limited to 'longlong.h')
-rw-r--r--longlong.h32
1 files changed, 5 insertions, 27 deletions
diff --git a/longlong.h b/longlong.h
index da19ba103..bcecd85e2 100644
--- a/longlong.h
+++ b/longlong.h
@@ -730,39 +730,17 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype));
garbage. */
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
do { \
- if (__builtin_constant_p (bl) && (UDItype)(bl) < 0x100000000ul) \
- __asm__ ("algfi\t%1,%5\n\talcgr\t%0,%3" \
- : "=r" (sh), "=&r" (sl) \
- : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)), \
- "%1" ((UDItype)(al)), "n" (bl)); \
- else if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x100000000ul) \
- __asm__ ("slgfi\t%1,%n5\n\talcgr\t%0,%3" \
- : "=r" (sh), "=&r" (sl) \
- : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)), \
- "%1" ((UDItype)(al)), "n" (bl)); \
- else \
- __asm__ ("algr\t%1,%5\n\talcgr\t%0,%3" \
+ __asm__ ("algr\t%1,%5\n\talcgr\t%0,%3" \
: "=r" (sh), "=&r" (sl) \
: "0" ((UDItype)(ah)), "r" ((UDItype)(bh)), \
"%1" ((UDItype)(al)), "r" ((UDItype)(bl))); \
} while (0)
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
do { \
- if (__builtin_constant_p (bl) && (UDItype)(bl) < 0x100000000ul) \
- __asm__ ("slgfi\t%1,%5\n\tslbgr\t%0,%3" \
- : "=r" (sh), "=&r" (sl) \
- : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)), \
- "1" ((UDItype)(al)), "n" (bl)); \
- else if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x100000000ul) \
- __asm__ ("algfi\t%1,%n5\n\tslbgr\t%0,%3" \
- : "=r" (sh), "=&r" (sl) \
- : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)), \
- "1" ((UDItype)(al)), "n" (bl)); \
- else \
- __asm__ ("slgr\t%1,%5\n\tslbgr\t%0,%3" \
- : "=r" (sh), "=&r" (sl) \
- : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)), \
- "1" ((UDItype)(al)), "r" ((UDItype)(bl))); \
+ __asm__ ("slgr\t%1,%5\n\tslbgr\t%0,%3" \
+ : "=r" (sh), "=&r" (sl) \
+ : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)), \
+ "1" ((UDItype)(al)), "r" ((UDItype)(bl))); \
} while (0)
#define umul_ppmm(xh, xl, m0, m1) \
do { \