summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2000-06-15 21:49:13 +0200
committertege <tege@gmplib.org>2000-06-15 21:49:13 +0200
commitebba2ef355f04ea12d061877436e5e703a19a89f (patch)
treed89752e52004f98ffdcc227df0440914c17d1c1a
parentfa94a2b193abf5f3a2c5f0124601085103594381 (diff)
downloadgmp-ebba2ef355f04ea12d061877436e5e703a19a89f.tar.gz
Avoid using `~' (Solaris as problems).
-rw-r--r--mpn/x86/k6/aors_n.asm4
-rw-r--r--mpn/x86/k7/aors_n.asm2
-rw-r--r--mpn/x86/k7/mmx/lshift.asm2
-rw-r--r--mpn/x86/k7/mmx/rshift.asm2
-rw-r--r--mpn/x86/k7/mul_basecase.asm2
5 files changed, 6 insertions, 6 deletions
diff --git a/mpn/x86/k6/aors_n.asm b/mpn/x86/k6/aors_n.asm
index 80e901910..f14ea44b9 100644
--- a/mpn/x86/k6/aors_n.asm
+++ b/mpn/x86/k6/aors_n.asm
@@ -156,7 +156,7 @@ ifdef(`OPERATION_add_n',`
movl %ecx, %esi
- andl $~3, %ecx
+ andl $-4, %ecx
andl $3, %esi
leal (%ebx,%ecx,4), %ebx
@@ -252,7 +252,7 @@ L(inplace):
leal -1(%ecx), %esi
decl %ecx
- andl $~3, %ecx
+ andl $-4, %ecx
andl $3, %esi
movl (%edx), %ebx C src low limb
diff --git a/mpn/x86/k7/aors_n.asm b/mpn/x86/k7/aors_n.asm
index fc4398975..a887b47ce 100644
--- a/mpn/x86/k7/aors_n.asm
+++ b/mpn/x86/k7/aors_n.asm
@@ -154,7 +154,7 @@ C -----------------------------------------------------------------------------
L(unroll):
deflit(`FRAME',STACK_SPACE)
movl %ebp, SAVE_EBP
- andl $~1, %ecx C size low bit masked out
+ andl $-2, %ecx C size low bit masked out
andl $1, PARAM_SIZE C size low bit kept
movl %ecx, %edi
diff --git a/mpn/x86/k7/mmx/lshift.asm b/mpn/x86/k7/mmx/lshift.asm
index 4ef57d0ee..9e9c148dd 100644
--- a/mpn/x86/k7/mmx/lshift.asm
+++ b/mpn/x86/k7/mmx/lshift.asm
@@ -247,7 +247,7 @@ L(start_dst_aligned):
movq %mm1, %mm2 C copy of src high qword
negl %ecx
- andl $~1, %eax C round size down to even
+ andl $-2, %eax C round size down to even
addl $64, %ecx
movl %eax, %ebx
diff --git a/mpn/x86/k7/mmx/rshift.asm b/mpn/x86/k7/mmx/rshift.asm
index 35b4df32d..78ee47658 100644
--- a/mpn/x86/k7/mmx/rshift.asm
+++ b/mpn/x86/k7/mmx/rshift.asm
@@ -245,7 +245,7 @@ L(start_dst_aligned):
movq %mm1, %mm2 C copy of src low two limbs
negl %ecx
- andl $~1, %eax C round size down to even
+ andl $-2, %eax C round size down to even
movl %eax, %ebx
negl %eax
diff --git a/mpn/x86/k7/mul_basecase.asm b/mpn/x86/k7/mul_basecase.asm
index b315fc62c..106ebf5d2 100644
--- a/mpn/x86/k7/mul_basecase.asm
+++ b/mpn/x86/k7/mul_basecase.asm
@@ -432,7 +432,7 @@ L(unroll):
decl %ecx C xsize-1
movl (%esi), %eax C xp low limb
- andl $~UNROLL_MASK, %ebx
+ andl $-UNROLL_MASK-1, %ebx
negl %ecx
subl $VAR_EXTRA_SPACE, %esp