Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

$%CRC32^STRING

Draft MDC Standard

7.1.6.6.2 $%CRC32^STRING

CRC32^STRING : INTEGER ( STRING : STRING , SEED : INTEGER : O )

$%CRC32^STRING computes a Cyclic Redundancy Code of the 8-bit character string STRING using X32 + X26 + X23 + X22 + X16 + X12 + X11 + X10+ +X8 + X7 + X5 + X4 + X2 + X + 1 as the polynomial. The optional parameter SEED supplies an initial value, which allows running CRC calculations on multiple strings. If missing, a default value of 0 (zero) is used for SEED. The value of SEED is ones-complemented before being used. The message bytes are considered shifted in low order bit first and the return value is ones-complemented and shifted out low order bit first.

Click here for $%CRC32^STRING sample code.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 15-Nov-2023, 13:15:36.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)