From owner-freebsd-hackers@FreeBSD.ORG Tue May 27 01:57:08 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9A4937B401 for ; Tue, 27 May 2003 01:57:08 -0700 (PDT) Received: from herring.nlsystems.com (mailgate.nlsystems.com [62.49.251.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A40643F75 for ; Tue, 27 May 2003 01:57:07 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by herring.nlsystems.com (8.12.9/8.12.8) with ESMTP id h4R8uwRP080735; Tue, 27 May 2003 09:56:58 +0100 (BST) (envelope-from dfr@nlsystems.com) From: Doug Rabson To: freebsd-hackers@freebsd.org, Oliver Fromme Date: Tue, 27 May 2003 09:56:58 +0100 User-Agent: KMail/1.5 References: <200304280054.h3S0sTi2006266@lurza.secnetix.de> In-Reply-To: <200304280054.h3S0sTi2006266@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200305270956.58065.dfr@nlsystems.com> X-Spam-Status: No, hits=-26.1 required=6.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Re: x86-64 support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 08:57:09 -0000 On Monday 28 April 2003 1:54 am, Oliver Fromme wrote: > Narvi wrote: > > On Sat, 26 Apr 2003, M. Warner Losh wrote: > > > In message: <20030427064014.H40030-100000@haldjas.folklore.ee> > > > > > > Narvi writes: > > > : option USE_PI_DIGITS 100 > > > > > > Only if you could implement it with integer math :-) > > > > where's the problem in that ? most mp libs use integer arithmetic, > > and x86-64 gives you 64x64->128 bit widening multiplies 8-) > > You don't need that; the digits of pi can be calculated > quite easily with integer math. This snippet is from my > signature collection: > > int f[9800],b,c=9814,g,i;long > a=1e4,d,e,h;main(){for(;b=c,c-=14;i=printf( > "%04d",e+d/a),e=d%a)while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d >%g;} > > Of course it doesn't comply with style(9), otherwise it > wouldn't fit into two lines. Prettifying (de-obfuscating) > it to make it style(9)-compliant is left as an exercise to > the reader. ;-) Doesn't appear to work. When I run this, it prints '1877' followed by lots of zeros... -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160