Use a shorter sequence.
This commit is contained in:
parent
f26c98f0d4
commit
4ba8e511ff
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -30,15 +30,13 @@ ENTRY(htonl)
|
||||||
.prologue 0
|
.prologue 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extlh a0, 5, t1 # t1 = dd000000
|
inslh a0, 7, t0 # t0 = 0000000000AABBCC
|
||||||
zap a0, 0xfd, t2 # t2 = 0000cc00
|
inswl a0, 3, t1 # t1 = 000000CCDD000000
|
||||||
sll t2, 5, t2 # t2 = 00198000
|
or t1, t0, t1 # t1 = 000000CCDDAABBCC
|
||||||
s8addl t2, t1, t1 # t1 = ddcc0000
|
sll t1, 16, t2 # t2 = 0000000000CCDDAA
|
||||||
zap a0, 0xfb, t2 # t2 = 00bb0000
|
zapnot t1, 0x0A, t0 # t0 = 00000000DD00BB00
|
||||||
srl t2, 8, t2 # t2 = 0000bb00
|
zapnot t2, 0x05, t3 # t3 = 0000000000CC00AA
|
||||||
extbl a0, 3, v0 # v0 = 000000aa
|
addl t0, t3, v0 # v0 = ssssssssDDCCBBAA
|
||||||
or t1, v0, v0 # v0 = ddcc00aa
|
|
||||||
or t2, v0, v0 # v0 = ddccbbaa
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
END(htonl)
|
END(htonl)
|
||||||
|
|
Loading…
Reference in a new issue