]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/i386/htonl.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / i386 / htonl.S
index 66efd20c07d895224737eafebe8c378a68a16fd9..c127d61c741d8b10319d6f4c783043c2b7a59637 100644 (file)
@@ -1,5 +1,5 @@
-/* Change byte order in word.  For Intel 80386.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+/* Change byte order in word.  For Intel 80x86, x >= 4.
+   Copyright (C) 1997-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,9 +27,7 @@
        .text
 ENTRY (htonl)
        movl    4(%esp), %eax
-       rorw    $8, %ax
-       rorl    $16, %eax
-       rorw    $8, %ax
+       bswap   %eax
        ret
 END (htonl)