Displaying 2 results from an estimated 2 matches for "generate_canon".
2016 Apr 04
3
RFC: Constant folding math functions for long double
Hi,
If you're interested, include/bits/random.tcc:3312
(std::generate_canonical()). I wish I could just point people at libc++,
but that's outside of my control. As for fixing the library, that horse
bolted some time ago.
Cheers,
James
On Mon, 4 Apr 2016 at 18:50 Stephen Canon <scanon at apple.com> wrote:
> That sounds like a library issue that qualifies a...
2016 Apr 04
2
RFC: Constant folding math functions for long double
Hi Joerg,
> IMO if constant folding of transcendental functions makes a significant
difference for your program, you likely are doing something strange
already.
Alas it's not as simple as that. Currently, if you declare:
std::uniform_real_distribution<float> x;
LLVM emits two calls to logl() with constant arguments, a fdiv and a fptoui.
Libc++'s implementation is consumed and