From owner-cvs-src@FreeBSD.ORG Fri Oct 26 07:15:05 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C42916A417; Fri, 26 Oct 2007 07:15:05 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4A48C13C48D; Fri, 26 Oct 2007 07:15:05 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9Q7F5si083095; Fri, 26 Oct 2007 07:15:05 GMT (envelope-from bz@repoman.freebsd.org) Received: (from bz@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9Q7F5W5083094; Fri, 26 Oct 2007 07:15:05 GMT (envelope-from bz) Message-Id: <200710260715.l9Q7F5W5083094@repoman.freebsd.org> From: "Bjoern A. Zeeb" Date: Fri, 26 Oct 2007 07:15:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/i386/i386 in_cksum.c src/sys/i386/include in_cksum.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 07:15:05 -0000 bz 2007-10-26 07:15:04 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/i386/i386 in_cksum.c sys/i386/include in_cksum.h Log: MFC: rev. 1.29 sys/i386/i386/in_cksum.c rev. 1.18 sys/i386/include/in_cksum.h 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 (intial version of [1]) PR: 115678, 69257 Approved by: re (kensmith) Revision Changes Path 1.28.10.1 +77 -43 src/sys/i386/i386/in_cksum.c 1.17.10.1 +14 -7 src/sys/i386/include/in_cksum.h