From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ramakrishnan Muthukrishnan Newsgroups: gmane.lisp.guile.devel Subject: Re: fix for expt bug Date: Wed, 3 Nov 2010 23:23:43 +0530 Message-ID: References: <8762whnc4d.fsf@yeeloong.netris.org> <87r5f4l3yt.fsf@yeeloong.netris.org> <87aalrxim7.fsf@yeeloong.netris.org> <87wrouwf6b.fsf@yeeloong.netris.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1288806855 4707 80.91.229.12 (3 Nov 2010 17:54:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2010 17:54:15 +0000 (UTC) Cc: guile-devel To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Nov 03 18:54:11 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PDhXG-00070I-6g for guile-devel@m.gmane.org; Wed, 03 Nov 2010 18:54:10 +0100 Original-Received: from localhost ([127.0.0.1]:48941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDhXF-00035W-OB for guile-devel@m.gmane.org; Wed, 03 Nov 2010 13:54:09 -0400 Original-Received: from [140.186.70.92] (port=34804 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDhXB-00031R-FD for guile-devel@gnu.org; Wed, 03 Nov 2010 13:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDhXA-0000yc-BV for guile-devel@gnu.org; Wed, 03 Nov 2010 13:54:05 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:41248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDhXA-0000yX-6f for guile-devel@gnu.org; Wed, 03 Nov 2010 13:54:04 -0400 Original-Received: by vws18 with SMTP id 18so1237718vws.0 for ; Wed, 03 Nov 2010 10:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=CSgtssms3DnIzUouIefKsMz2CSHLaZw+QMSveIDFwqM=; b=fXiOL3KoeBFTtXN1FfOSSs8fYGXxcpbCTiVydgqfuR0AaIJNkKjcTPKNOUCbQsL1b4 HkRknMWulSG3TN88JmQErVKac+POosUCQIRpKovMbEDmbSFuuXbF1Zwg+qPWmUa4/hIQ bnm0cCBneBoUJfXdQirB623zcwSd918n+kmfA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=OlmH+KzTjMCBfwsBMJT+Lt+9wFsXieSZVZQ/MM1nswn/tzZ/QHxRL8ggs/vIcykO8i ObgiCV1ua3gjbJrD8hX21iWFzcS1QNlfM7dKh315Vt1KkUfox45w6Ff3p2K1c1El8d2n JqcR6o/7kCCCXJvdVc2FeaEcVPD63cnmUdzJ8= Original-Received: by 10.229.99.76 with SMTP id t12mr7748116qcn.70.1288806843551; Wed, 03 Nov 2010 10:54:03 -0700 (PDT) Original-Received: by 10.229.40.147 with HTTP; Wed, 3 Nov 2010 10:53:43 -0700 (PDT) In-Reply-To: <87wrouwf6b.fsf@yeeloong.netris.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11111 Archived-At: On Wed, Nov 3, 2010 at 9:52 PM, Mark H Weaver wrote: > Ramakrishnan and others, > > I just realized that there is a better way to fix these bugs. =C2=A0We do= n't > need a new top-level case in expt after all. =C2=A0Instead, we generalize= the > scm_integer_expt case to support inexact integer exponents. > > Within that case, if the exponent is an inexact integer, then we make it > exact and make the base inexact, and then call scm_integer_expt. Mark, Why do we need to convert the base to inexact? is there any problem if they are just as it is and we convert only the exponent to exact when they are exact? --=20 =C2=A0 Ramakrishnan