Basic constructor macro for const-float structures.
(make-const-float [:fconst <fconst>])
This is the usual way to construct const-float structures. It simply conses together a structure with the specified fields.
This macro generates a new const-float structure from scratch. See also change-const-float, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-const-float (&rest args) (std::make-aggregate 'const-float args '((:fconst)) 'make-const-float nil))
Function:
(defun const-float (fconst) (declare (xargs :guard (fconstp fconst))) (declare (xargs :guard t)) (b* ((fconst (mbe :logic (fconst-fix fconst) :exec fconst))) (cons :float fconst)))