Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 471 Bytes

MODU.markdown

File metadata and controls

17 lines (11 loc) · 471 Bytes

Modulo Arithmetic Extension

Fingerprint 0x4d4f4455 ('MODU')

Under development.

The MODU fingerprint implements some of the finer, less-well-agreed-upon points of modulo arithmetic. With positive arguments, these instructions work exactly the same as % does. However, when negative values are involved, they all work differently:

M: signed-result modulo:

U: Sam Holden's unsigned-result modulo

R: C-language integer remainder