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