pub const PS_INTEGER_BITS: u32 = 32;Expand description
Integer width for type 4 arithmetic — a resolved spec ambiguity, not a
sourced value (recorded as F-A3 in iso32000__s__7.10.md).
bitshift’s direction and zero-fill are sourced (Annex B and PLRM3 §8.2),
but the width it shifts within is disclaimed by both documents.
§7.10.5.1 exempts type 4 intermediates from Annex C’s limits — “an
implementation may use a representation that exceeds those limits” — and
PLRM3 says the representation of integers “may depend on the CPU
architecture”. So there is no width to look up.
pdfcer fixes it at 32, because Annex C Table C.1’s integer row is the
only integer range ISO 32000-1 states anywhere, and because it is what every
PostScript interpreter of the era used. The choice is observable in three
places: the result of a right shift on a negative operand, the point at
which add/sub/mul spill from integer to real, and cvi’s
rangecheck.
This is exactly the shape of thing that belongs in
pdfcer_core::settings::Settings alongside the other resolved ambiguities
rather than being frozen in a constant; it is a constant here only because
this module was added without touching the settings surface. Wiring it up is
a small, mechanical follow-up.