Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Fast subnormal arithmetics

12 views
Skip to first unread message

Bonita Montero

unread,
Sep 11, 2022, 2:14:00 AM9/11/22
to
Am 10.09.2022 um 14:30 schrieb Stefan Ram:
> An arithmetic bug in some Python libraries might be related
> to C. The "fast" optimization options of some common compilers
> might lead to calculation errors, when subnormal numbers are
> involved. (Maybe this is even documented, but not everybody
> is always aware of it.) A library will then be used that
> sets the processor's FTZ/DAZ flag, and from then on, subnormals
> will be treated as zero.
>
> Blog post "Someone's Been Messing With My Subnormals!"
> by Dolan-Gavitt.
>
>

It doesn't matter how FTZ or DAZ are set.


0 new messages