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