testprofile on i686
Robert Helling
helling at atdotde.de
Sun Dec 5 14:25:11 PST 2021
Alan,
> On 5. Dec 2021, at 23:07, Linus Torvalds <torvalds at linux-foundation.org> wrote:
>
> On Sun, Dec 5, 2021 at 2:03 PM Robert Helling via subsurface
> <subsurface at subsurface-divelog.org> wrote:
>>
>> depth * 1000.0 / 1000.0 which for a depth of 30m seemed to end up just a tiny bit below 30.
>
> That implies that we (once again) didn't do proper rounding.
>
> I suspect just short-circuiting it for zero helium hides the problem
> rather than fixing it.
>
> Linus
what does the test program on https://www.cplusplus.com/reference/cfenv/fegetround/ <https://www.cplusplus.com/reference/cfenv/fegetround/> produce on your machine? I am a but afraid to explicitly set the rounding mode just to be sure as that (according to my understanding of the docs I found) might cause the compiler to think we are doing strange stuff.
Best
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20211205/91f6be41/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20211205/91f6be41/attachment-0001.sig>
More information about the subsurface
mailing list