On Fri, Jan 10, 2025 at 8:31 PM Charles Oliver Nutter <head...@headius.com>
wrote:

> long high = Math.multiplyHigh(value, other);
> long low = value * other;
> if (high == 0 && low >= 0 || value < 0 || high == 0 && other < 0) {
>     return asFixnum(context, low);
> }
>

This pasted weirdly... but it doesn't matter because there's an additional
flaw: it will reject *all* negative results because the high 64 bits will
be non-zero.

Reply via email to