[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug fix for $((x**y)) algorithm on 64+ bits machines.
From: |
Nicolas ARGYROU |
Subject: |
Re: Bug fix for $((x**y)) algorithm on 64+ bits machines. |
Date: |
Sat, 17 Sep 2011 20:35:08 -0700 (PDT) |
You're right. Then, just do what you want with this piece of code, I make it
public domain: no restriction at all on using it. It's a gift to bash as I use
it a lot. I also accept that you put my name and/or email with the piece of
code in case someone wants to contact the author. :-)
Regards,
Nicolas Argyrou
----- Original Message -----
From: Dave Rutherford <dave@evilpettingzoo.com>
To: Nicolas ARGYROU <nargy@yahoo.com>
Cc:
Sent: Saturday, September 17, 2011 10:34 PM
Subject: Re: Bug fix for $((x**y)) algorithm on 64+ bits machines.
On Sat, Sep 17, 2011 at 07:10, Nicolas ARGYROU <nargy@yahoo.com> wrote:
> I came up with a version that is slightly more precise in the comments, and
> that uses 3 registers instead of 4
> (though gcc can optimize that):
>
>
> // Copyright 2011: Nicolas Argyrou <nargy@yahoo.com>, public domain.
My understanding is that something can be either copyrighted or
public domain, but not both at the same time. You might want
to check on this.
Dave
Re: Bug fix for $((x**y)) algorithm on 64+ bits machines., Chet Ramey, 2011/09/19