Skip to content

Commit

Permalink
[add] ecl: add a lispifier for long double
Browse files Browse the repository at this point in the history
  • Loading branch information
digikar99 committed May 8, 2024
1 parent 5a87721 commit c352b49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lispifiers.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@
(def "numpy.int16" :int16)
(def "numpy.int8" :int8))

#+ecl
(define-lispifier "numpy.longdouble" (o)
(let ((o (ffi:make-pointer (pointer-address (inc-pointer o 16))
:long-double)))
(ffi:deref-pointer o :long-double)))

(defun array-element-type-num-bytes (array)
(eswitch ((array-element-type array) :test #'type=)
('single-float 4)
Expand Down

0 comments on commit c352b49

Please sign in to comment.