Date: Tue, 8 Apr 2025 19:58:55 +0200
Il 08/04/25 19:01, John Platts via Std-Proposals ha scritto:
> Here is a snippet on Compiler Explorer that demonstrates suboptimal code
> generation for saturated floating-point to integer cast (implemented
> with pure C++11 code) with GCC, Clang, and MSVC:
> https://godbolt.org/z/rrKGTchGv <https://godbolt.org/z/rrKGTchGv>
Please package all this information in a paper and publish it (if you
need for that guidance, just ask.). I think the idea is sound and
there's value in it, there are just some design decisions to justify
(such as treatment of NaNs; interactions with std::simd; whether
extending saturate_cast or introducing a new function).
Thanks,
--
Giuseppe D'Angelo
> Here is a snippet on Compiler Explorer that demonstrates suboptimal code
> generation for saturated floating-point to integer cast (implemented
> with pure C++11 code) with GCC, Clang, and MSVC:
> https://godbolt.org/z/rrKGTchGv <https://godbolt.org/z/rrKGTchGv>
Please package all this information in a paper and publish it (if you
need for that guidance, just ask.). I think the idea is sound and
there's value in it, there are just some design decisions to justify
(such as treatment of NaNs; interactions with std::simd; whether
extending saturate_cast or introducing a new function).
Thanks,
--
Giuseppe D'Angelo
Received on 2025-04-08 17:58:59