diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2007-10-20 22:18:42 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2007-10-20 22:18:42 +0000 |
commit | 2b3e7485f683cae86e5b9c773bbaabf920746f0e (patch) | |
tree | 093ff5eddd45019ddc9c6de78b09a7b98701ea38 /sys/dev/mpt | |
parent | 1f631dacae3d840cd27c0b372e137cdb36874c21 (diff) | |
download | src-2b3e7485f683cae86e5b9c773bbaabf920746f0e.tar.gz src-2b3e7485f683cae86e5b9c773bbaabf920746f0e.zip |
Fold multiple asm statements into one so that the compiler at a certain
optimization level (-march=pentium-mmx for example) does not insert
intermediate ops which would trash the carry.
Change both sys/i386/i386/in_cksum.c[1] and sys/i386/include/in_cksum.h.
To my best understanding the same problem was addressed in rev. 1.16
of src/sys/i386/include/in_cksum.h for just a single function 3y ago.
Reviewed by: jhb
Submitted by: Zhouyi ZHOU <zhouzhouyi FreeBSD.org> (intial version of [1])
MFC after: 5 days
PR: 115678, 69257
Notes
Notes:
svn path=/head/; revision=172835
Diffstat (limited to 'sys/dev/mpt')
0 files changed, 0 insertions, 0 deletions