From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Forwarded patch for modular exponentiation support (GMP powm) Date: Thu, 25 Mar 2004 10:02:13 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <878yhphjzu.fsf@zip.com.au> References: <87k73cng30.fsf@raven.i.defaultvalue.org> <874qtzsv3c.fsf@zip.com.au> <87llnah2hf.fsf@offby1.atm01.sea.blarg.net> <87hdxyctsa.fsf@zip.com.au> <87ad3qm76l.fsf@offby1.atm01.sea.blarg.net> <87vfmdfaga.fsf@zip.com.au> <87lln8lwue.fsf@offby1.atm01.sea.blarg.net> <8765czp64o.fsf@zagadka.ping.de> <87hdwj4334.fsf@zip.com.au> <87d677hr1k.fsf@zagadka.ping.de> <87ekrloncu.fsf@zip.com.au> <87u10hoili.fsf@offby1.atm01.sea.blarg.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080174379 11062 80.91.224.253 (25 Mar 2004 00:26:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2004 00:26:19 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 25 01:26:02 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6Ih6-0007q2-00 for ; Thu, 25 Mar 2004 01:26:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6ITj-0004Q7-UN for guile-devel@m.gmane.org; Wed, 24 Mar 2004 19:12:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6IR3-0003wa-KZ for guile-devel@gnu.org; Wed, 24 Mar 2004 19:09:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6IKS-0001eU-K0 for guile-devel@gnu.org; Wed, 24 Mar 2004 19:03:09 -0500 Original-Received: from [61.8.0.85] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6IKR-0001cp-LZ for guile-devel@gnu.org; Wed, 24 Mar 2004 19:02:35 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2P02N5v023817; Thu, 25 Mar 2004 11:02:23 +1100 Original-Received: from localhost (ppp106.dyn251.pacific.net.au [203.143.251.106]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2P02MGP011259; Thu, 25 Mar 2004 11:02:23 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1B6IK7-00039G-00; Thu, 25 Mar 2004 10:02:15 +1000 Original-To: Eric Hanchrow Mail-Copies-To: never In-Reply-To: <87u10hoili.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Sun, 21 Mar 2004 16:01:29 -0800") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3568 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3568 Eric Hanchrow writes: > > Here's the latest & greatest It just occurred to me to wonder if negative divisors should give a negative remainder, the same way the plain `modulo' does. mpz_powm ignores the sign of the divisor and always gives back a positive remainder. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel