Mathias Broxvall <[EMAIL PROTECTED]> writes:

> What is the easiest way of handling arrays of integers. Since the code is 
> running very often (the control loop cycle is < 100ms) I would prefer if 
> possible not to do converstions between the lisp and C side. Is it eg. 
> possible to somehow create and use "normal" 32bit integers in CMUCL? 

CMUCL has specialized arrays for 32-bit signed and unsigned integers.
So 
  (make-array 5 :element-type '(unsigned-byte 32))
should correspond to 
  unsigned int foo[5]
and replace unsigned-byte with signed-byte for the signed version.

Cheers,

Christophe
-- 
http://www-jcsu.jesus.cam.ac.uk/~csr21/       +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%")    (pprint #36rJesusCollegeCambridge)

Reply via email to