[PATCH] Suggested FreeBSD merge

看板DFBSD_submit作者時間21年前 (2004/11/12 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
--WYTEVAkct0FjGQmd Content-Type: multipart/mixed; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I think you would interest the patch attached. This brings FreeBSD rev. 1.10 of htonl.S and ntohl.S's changes by David O'Brien, which is positive for application performance on 80486 and above. Cheers, --=20 Xin LI <delphij frontfree net> http://www.delphij.net/ See complete headers for GPG key and other information. --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-libc Content-Transfer-Encoding: quoted-printable Index: htonl.S =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/dcvs/src/lib/libc/i386/net/htonl.S,v retrieving revision 1.3 diff -u -r1.3 htonl.S --- htonl.S 6 Dec 2003 03:11:35 -0000 1.3 +++ htonl.S 12 Nov 2004 05:33:48 -0000 @@ -43,7 +43,11 @@ =20 ENTRY(htonl) movl 4(%esp),%eax +#ifdef I386_CPU xchgb %al,%ah roll $16,%eax xchgb %al,%ah +#else + bswap %eax +#endif ret Index: ntohl.S =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/dcvs/src/lib/libc/i386/net/ntohl.S,v retrieving revision 1.3 diff -u -r1.3 ntohl.S --- ntohl.S 6 Dec 2003 03:11:35 -0000 1.3 +++ ntohl.S 12 Nov 2004 05:34:37 -0000 @@ -43,7 +43,11 @@ =20 ENTRY(ntohl) movl 4(%esp),%eax +#ifdef I386_CPU xchgb %al,%ah roll $16,%eax xchgb %al,%ah +#else + bswap %eax +#endif ret --BXVAT5kNtrzKuDFl-- --WYTEVAkct0FjGQmd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBlEyB/cVsHxFZiIoRAnKyAJkBF9Ky49e3xvi1zL8bK32fqynYUgCfTPDp fqEL4hCGllQWLKWCKXBSXuc= =4Wys -----END PGP SIGNATURE----- --WYTEVAkct0FjGQmd--
文章代碼(AID): #11b56b00 (DFBSD_submit)