summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/sparc64/net/htonl.S2
-rw-r--r--lib/libc/sparc64/net/ntohl.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sparc64/net/htonl.S b/lib/libc/sparc64/net/htonl.S
index c3d10e5..e972dfc 100644
--- a/lib/libc/sparc64/net/htonl.S
+++ b/lib/libc/sparc64/net/htonl.S
@@ -57,5 +57,5 @@
.set CNAME(htonl),CNAME(__htonl)
ENTRY(__htonl)
retl
- srl %o0, 0, %o0 /* zero extend -- or do we sign extend? */
+ srl %o0, 0, %o0 /* zero extend */
END(__htonl)
diff --git a/lib/libc/sparc64/net/ntohl.S b/lib/libc/sparc64/net/ntohl.S
index 4a54691..1313a45 100644
--- a/lib/libc/sparc64/net/ntohl.S
+++ b/lib/libc/sparc64/net/ntohl.S
@@ -57,5 +57,5 @@
.set CNAME(ntohl),CNAME(__ntohl)
ENTRY(__ntohl)
retl
- signx %o0, %o0
+ srl %o0, 0, %o0 /* zero extend */
END(__ntohl)
OpenPOWER on IntegriCloud