<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [HSW][regression][bisect] RPG Maker game gives "invalid floating point operation" at startup"
href="https://bugs.freedesktop.org/show_bug.cgi?id=95419#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - [HSW][regression][bisect] RPG Maker game gives "invalid floating point operation" at startup"
href="https://bugs.freedesktop.org/show_bug.cgi?id=95419">bug 95419</a>
from <span class="vcard"><a class="email" href="mailto:pinguin255@gmail.com" title="dnord <pinguin255@gmail.com>"> <span class="fn">dnord</span></a>
</span></b>
<pre>I don't understand the whole picture, but how often actually it's not enough
space (remaining_space < total_wants)? If it's usually enough space to
allocate, isn't it reasonable to distinguish (remaining_space >= total_wants)
as a separate case, which is not uses any floating-point arithmetic and just
allocates what was asked and for second case use original code, but with two
explicit checks added for total_wants==0?
Or use solution with "floor" for second case only, as it is simpler. Because
solution with "floor" may not allocate all requested space even in trivial case
(remaining_space >= total_wants). I don't know, is it acceptable to use "floor"
and allocate slightly less space than possible in second case (when
remaining_space < total_wants).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>