You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The machinery with __kBitConversionBuffer is tied to little endian systems.
On big endian systems, the two slots on __kBitConversionInts are swapped.
To illustrate, consider
JSBI.LT(JSBI.BigInt("4294967296"),4294967296);
On big endian environments, the above expression evaluates to true, which is wrong.
(In this specific example, the execution path starts to diverge here.)
Perhaps the most prominent example of big-endian environment is that emulated by typedarray.
Thank you for the library.
The text was updated successfully, but these errors were encountered:
The machinery with
__kBitConversionBuffer
is tied to little endian systems.On big endian systems, the two slots on
__kBitConversionInts
are swapped.To illustrate, consider
On big endian environments, the above expression evaluates to true, which is wrong.
(In this specific example, the execution path starts to diverge here.)
Perhaps the most prominent example of big-endian environment is that emulated by typedarray.
Thank you for the library.
The text was updated successfully, but these errors were encountered: