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