Method hash
hash(UInt32)
Calculates a hash value for the value at b as absolute index in the stack.
Declaration
public uint hash(uint i)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32 | i | Absolute index of a stack entry. |
Returns
| Type | Description |
|---|---|
| System.UInt32 | A System.UInt32 value as hash value. |
Remarks
The function is helpful for comparsions and to build dictionarys without creation of BigRational objects.
To get meaningful hash values the function forces normalizations what can be time critical.
The hash value returned is identical with the hash value returned from GetHashCode() for same values.
see: mark() for absolute indices.