|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH] fpu/softfloat: check for Inf / x or 0 / x before /0 |
Date: | Mon, 16 Apr 2018 09:39:57 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 04/16/2018 03:54 AM, Alex Bennée wrote: > + /* Inf / x or 0 / x */ > + if (a.cls == float_class_inf || a.cls == float_class_zero) { > + a.sign = sign; > + return a; > + } 0/0 should raise an exception. I find inf/0 non-intuitive, but there ya go. r~
[Prev in Thread] | Current Thread | [Next in Thread] |