summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-04-18 10:45:25 +0200
committerAndy Polyakov <appro@openssl.org>2016-04-20 09:51:27 +0200
commit6ca3e6e779635ac54d51efb3483b7616abfdf477 (patch)
tree9987169dbcee4e5981566f07d894da285d8ca373
parentf0d484fcd4d2119a31a2272c4a9b1752e0011cd7 (diff)
poly1305/asm/poly1305-x86_64.pl: not all assemblers manage << in constants.
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rwxr-xr-xcrypto/poly1305/asm/poly1305-x86_64.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/poly1305/asm/poly1305-x86_64.pl b/crypto/poly1305/asm/poly1305-x86_64.pl
index 7d676119a2..e2a38eca7f 100755
--- a/crypto/poly1305/asm/poly1305-x86_64.pl
+++ b/crypto/poly1305/asm/poly1305-x86_64.pl
@@ -495,10 +495,10 @@ poly1305_blocks_avx:
################################# base 2^26 -> base 2^64
mov $d1#d,$h0#d
- and \$-1<<31,$d1
+ and \$`-1<<31`,$d1
mov $d2,$r1 # borrow $r1
mov $d2#d,$h1#d
- and \$-1<<31,$d2
+ and \$`-1<<31`,$d2
shr \$6,$d1
shl \$52,$r1
@@ -1383,10 +1383,10 @@ poly1305_blocks_avx2:
################################# base 2^26 -> base 2^64
mov $d1#d,$h0#d
- and \$-1<<31,$d1
+ and \$`-1<<31`,$d1
mov $d2,$r1 # borrow $r1
mov $d2#d,$h1#d
- and \$-1<<31,$d2
+ and \$`-1<<31`,$d2
shr \$6,$d1
shl \$52,$r1
@@ -1991,7 +1991,7 @@ $code.=<<___;
.Lmask24:
.long 0x0ffffff,0,0x0ffffff,0,0x0ffffff,0,0x0ffffff,0
.L129:
-.long 1<<24,0,1<<24,0,1<<24,0,1<<24,0
+.long `1<<24`,0,`1<<24`,0,`1<<24`,0,`1<<24`,0
.Lmask26:
.long 0x3ffffff,0,0x3ffffff,0,0x3ffffff,0,0x3ffffff,0
.Lfive: