[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 20/22] fpu/softfloat: re-factor minmax
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v3 20/22] fpu/softfloat: re-factor minmax |
Date: |
Wed, 24 Jan 2018 09:31:52 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 01/24/2018 05:13 AM, Alex Bennée wrote:
> + if (a.cls >= float_class_qnan
> + ||
> + b.cls >= float_class_qnan)
> + {
> + if (ieee) {
> + /* Takes two floating-point values `a' and `b', one of
> + * which is a NaN, and returns the appropriate NaN
> + * result. If either `a' or `b' is a signaling NaN,
> + * the invalid exception is raised.
> + */
> + if (a.cls == float_class_snan || b.cls == float_class_snan) {
> + return pick_nan_parts(a, b, s);
> + } else if (a.cls >= float_class_qnan
> + &&
> + b.cls < float_class_qnan) {
> + return b;
> + } else if (b.cls >= float_class_qnan
> + &&
> + a.cls < float_class_qnan) {
> + return a;
> + }
> + }
is_nan.
r~
- [Qemu-devel] [PATCH v3 10/22] fpu/softfloat: move the extract functions to the top of the file, (continued)
- [Qemu-devel] [PATCH v3 10/22] fpu/softfloat: move the extract functions to the top of the file, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 12/22] fpu/softfloat: re-factor add/sub, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 14/22] fpu/softfloat: re-factor div, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 11/22] fpu/softfloat: define decompose structures, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 18/22] fpu/softfloat: re-factor int/uint to float, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 20/22] fpu/softfloat: re-factor minmax, Alex Bennée, 2018/01/24
- Re: [Qemu-devel] [PATCH v3 20/22] fpu/softfloat: re-factor minmax,
Richard Henderson <=
- [Qemu-devel] [PATCH v3 16/22] fpu/softfloat: re-factor round_to_int, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 21/22] fpu/softfloat: re-factor compare, Alex Bennée, 2018/01/24
- [Qemu-devel] [PATCH v3 19/22] fpu/softfloat: re-factor scalbn, Alex Bennée, 2018/01/24
[Qemu-devel] [PATCH v3 22/22] fpu/softfloat: re-factor sqrt, Alex Bennée, 2018/01/24