This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix alpha htonl


Hi!

There is a small but important typo in the new faster htonl.

2000-12-10  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/alpha/htonl.S: Fix a typo.

--- libc/sysdeps/alpha/htonl.S.jj	Sun Dec 10 21:25:34 2000
+++ libc/sysdeps/alpha/htonl.S	Sun Dec 10 23:32:30 2000
@@ -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

	Jakub

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]