home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!wupost!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!disuns2.epfl.ch!simon
- From: simon@lia.di.epfl.ch (Simon Leinen)
- Newsgroups: comp.lang.lisp
- Subject: Re: Calling C function from LCL
- Message-ID: <SIMON.92Aug20120853@liasg1.epfl.ch>
- Date: 20 Aug 92 10:08:53 GMT
- References: <Bt8G1E.229@iai.kfk.de> <16u3jhINN9m1@early-bird.think.com>
- <4eYpN3W00jeiEkhC8z@cs.cmu.edu>
- Sender: news@disuns2.epfl.ch
- Organization: DI-LIA -- Ecole Polytechnique Federale de Lausanne
- Lines: 17
- Nntp-Posting-Host: liasg1.epfl.ch
- In-reply-to: William.Lott@cs.cmu.edu's message of 20 Aug 92 00:22:27 GMT
- X-Md4-Signature: 7ccb5de011e3207ca104defed5a2cb2a
-
- In article <4eYpN3W00jeiEkhC8z@cs.cmu.edu> William.Lott@cs.cmu.edu writes:
-
- We [CMU Common Lisp, that is] use the low three bits as a type-tag,
- but have 000 for even fixnums and 100 for odd fixnums.
-
- That's exactly the same representation as in Lucid, at least on the
- SPARC.
-
- The implicit multiplication by 4 is handy when accessing arrays of
- word (4 byte) sized objects: it's pre-scaled.
-
- Yes; this can make vector-intensive code faster than corresponding C
- code in many cases... (even if the code has been naively translated
- from C to Common Lisp. I think the "Triangle" Gabriel benchmark works
- that way :-)
- --
- Simon.
-