<div dir="ltr"><div dir="ltr">On Fri, Jan 10, 2025 at 8:31 PM Charles Oliver Nutter <<a href="mailto:headius@headius.com">headius@headius.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">long high = Math.multiplyHigh(value, other);</div><div class="gmail_quote">long low = value * other;<br>if (high == 0 && low >= 0 || value < 0 || high == 0 && other < 0) {<br>    return asFixnum(context, low);<br><div>}</div></div></div></blockquote><div><br></div><div>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.</div></div></div>