Changeset 390


Ignore:
Timestamp:
Jan 25, 2004, 2:00:51 PM (21 years ago)
Author:
Gary Byers
Message:

WITH-STACK-SHORT-FLOATS moved here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/compiler/PPC/PPC32/ppc32-arch.lisp

    r372 r390  
    624624(defconstant reservation-discharge #x1004)
    625625
     626
     627
     628(defmacro with-stack-short-floats (specs &body body)
     629  (ccl::collect ((binds)
     630                 (inits)
     631                 (names))
     632                (dolist (spec specs)
     633                  (let ((name (first spec)))
     634                    (binds `(,name (ccl::%alloc-misc ppc32::single-float.element-count ppc32::subtag-single-float)))
     635                    (names name)
     636                    (let ((init (second spec)))
     637                      (when init
     638                        (inits `(ccl::%short-float ,init ,name))))))
     639                `(let* ,(binds)
     640                  (declare (dynamic-extent ,@(names))
     641                           (short-float ,@(names)))
     642                  ,@(inits)
     643                  ,@body)))
     644
     645
     646
    626647(provide "PPC32-ARCH")
Note: See TracChangeset for help on using the changeset viewer.