def compare(a, b):
assertType(a, BigInt)<EOL>b = coerceBigInt(b)<EOL>if not b:<EOL><INDENT>return NotImplemented<EOL><DEDENT>return librelic.bn_cmp(byref(a), byref(b))<EOL>
Compares BigInt @a against integer type @b. Returns LESS_THAN, 
EQUAL, or GREATER_THAN.