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