about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/alpha/htonl.S2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b9aa659add..1f1de48c39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2000-12-10  Jakub Jelinek  <jakub@redhat.com>
 
+	* sysdeps/alpha/htonl.S: Fix a typo.
+
+2000-12-10  Jakub Jelinek  <jakub@redhat.com>
+
 	* sysdeps/alpha/alphaev6/stxcpy.S: Exchange t8 with t10.
 
 2000-12-10  Andreas Jaeger  <aj@suse.de>
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