summaryrefslogtreecommitdiff
path: root/sysdeps/alpha/htonl.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha/htonl.S')
-rw-r--r--sysdeps/alpha/htonl.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/alpha/htonl.S b/sysdeps/alpha/htonl.S
index 2358861300..193986e7c3 100644
--- a/sysdeps/alpha/htonl.S
+++ b/sysdeps/alpha/htonl.S
@@ -33,7 +33,7 @@ ENTRY(htonl)
inslh a0, 7, t0 # t0 = 0000000000AABBCC
inswl a0, 3, t1 # t1 = 000000CCDD000000
or t1, t0, t1 # t1 = 000000CCDDAABBCC
- sll t1, 16, t2 # t2 = 0000000000CCDDAA
+ srl t1, 16, t2 # t2 = 0000000000CCDDAA
zapnot t1, 0x0A, t0 # t0 = 00000000DD00BB00
zapnot t2, 0x05, t3 # t3 = 0000000000CC00AA
addl t0, t3, v0 # v0 = ssssssssDDCCBBAA