logo       

Fast bignum ldb: msg#00028

lisp.cmucl.devel

Subject: Fast bignum ldb


I noticed that in code/bignum.lisp, there is some special code for
ldb/dpb on a bignum, that is more intelligent than the current code
which just does a bunch of shifts and ands. This code is currently
commented out.

The code for ldb was mostly working, and I've fixed it so it works
now. A simple test of extracting (byte 27 39) from a bignum shows
that it's 4.5 times faster and conses 4 times less.

I've also fixed up the dpb part, but there still appear to be some
issues/confusion on dpb with a byte spec that's bigger than a fixnum,
but the new-byte is a fixnum.

I think, when CVS comes back up, that I'll enable the bignum ldb/dpb
code, but probably will not hook it into the compiler. That will wait
for some other time.

Ray


--
--

--
Ericsson may automatically add a disclaimer. Sorry, it's beyond my
control.




This communication is confidential and intended solely for the addressee(s).
Any unauthorized review, use, disclosure or distribution is prohibited. If you
believe this message has been sent to you in error, please notify the sender by
replying to this transmission and delete the message without disclosing it.
Thank you.

E-mail including attachments is susceptible to data corruption, interruption,
unauthorized amendment, tampering and viruses, and we only send and receive
e-mails on the basis that we are not liable for any such corruption,
interception, amendment, tampering or viruses or any consequences thereof.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise