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