From owner-cvs-all@FreeBSD.ORG Wed Apr 4 01:31:22 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5881E16A403; Wed, 4 Apr 2007 01:31:22 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 0C34513C45A; Wed, 4 Apr 2007 01:31:21 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l341VKP7047197; Tue, 3 Apr 2007 21:31:20 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: src-committers@FreeBSD.org Date: Tue, 3 Apr 2007 21:31:15 -0400 User-Agent: KMail/1.6.2 References: <200704040119.l341JsQ1083798@repoman.freebsd.org> In-Reply-To: <200704040119.l341JsQ1083798@repoman.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200704032131.17421.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/3009/Tue Apr 3 20:49:16 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/amd64/stdlib Makefile.inc div.S ldiv.S lldiv.S X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 01:31:22 -0000 On Tuesday 03 April 2007 09:19 pm, Jung-uk Kim wrote: > jkim 2007-04-04 01:19:54 UTC > > FreeBSD src repository > > Added files: > lib/libc/amd64/stdlib Makefile.inc div.S ldiv.S lldiv.S > Log: > Import amd64 assembly implementations of div(3) family from > NetBSD. > > Obtained from: NetBSD > > Revision Changes Path > 1.1 +4 -0 src/lib/libc/amd64/stdlib/Makefile.inc (new) > 1.1 +17 -0 src/lib/libc/amd64/stdlib/div.S (new) > 1.1 +15 -0 src/lib/libc/amd64/stdlib/ldiv.S (new) > 1.1 +15 -0 src/lib/libc/amd64/stdlib/lldiv.S (new) Here is some stats: x div.c + div.S +--------------------------------------------------------------------------+ | + x | | + x | | + x | | + x | | + x | | + x | | ++ + xx | | ++ ++ x xx | | ++ +++ x xx | |+ +++ +++ x x xxxxx | | |__AM_| |______A__M____|| +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 25 0.80913 0.842137 0.841493 0.83946676 0.0065767776 + 25 0.782989 0.793462 0.792594 0.79126932 0.0025271281 Difference at 95.0% confidence -0.0481974 +/- 0.00283374 -5.74144% +/- 0.337564% (Student's t, pooled s = 0.00498199) x ldiv.c + ldiv.S +--------------------------------------------------------------------------+ | + | | + | | + + x | | + + x xx | | + + x xx | | + ++ xx xx | | + +++ xx xx | |+ ++++++++ + x x xxxx x xxx | | |__AM__| |_______MA________|| +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 25 1.262527 1.293172 1.288804 1.2891065 0.0060759831 + 25 1.24652 1.259101 1.25342 1.2527828 0.0025334642 Difference at 95.0% confidence -0.0363236 +/- 0.00264769 -2.81774% +/- 0.205389% (Student's t, pooled s = 0.00465489) Each run is total user time of 25M executions in a tight loop on Athlon64 @2GHz. FYI, Jung-uk Kim