Implement the C99 complex type
Bug #622260 reported by
Luís Oliveira
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CFFI |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Suggested by Tamas K. Papp.
Prototype code:
(defmethod translate-
(complex (mem-aref ptr :float 0) (mem-aref ptr :float 1)))
(defun complex-float-aref (ptr index c)
(let ((p (* (foreign-type-size :complex-float) index)))
(setf (mem-aref p :float 0) (realpart c)
To post a comment you must log in.