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