[Ecls-list] Support for specialized array of 32-bits integers?

Goffioul Michael goffioul at imec.be
Wed Jun 1 23:49:16 UTC 2005


> 29 bits? What a strange number..how does that happen to be?

In ECL there are 2 immediate types (that do not use an internal
structure for representation): fixnum and character. So you need 2
bits to tag them. Maybe the third "missing" bit is for the sign as
fixnum is signed.

> (make-array 3 :element-type '(unsigned-byte 29))
#(0 0 0)
> (make-array 3 :element-type '(unsigned-byte 30))
#(NIL NIL NIL)

As you can see in the second example, the array-element-type is T
and not fixnum.

Michael.


More information about the ecl-devel mailing list