Bug 18741 – std.math.sqrt doesn't use sqrtl when it's available

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-04-06T19:59:17Z
Last change time
2018-04-06T20:30:48Z
Assigned to
No Owner
Creator
Jack Stouffer

Comments

Comment #0 by jack — 2018-04-06T19:59:17Z
std.math.sqrt always uses the double overload of core.stdc.math.sqrt even when sqrtl is given on the platform.
Comment #1 by kinke — 2018-04-06T20:23:33Z
It always uses the core.math intrinsic, which has all 3 overloads.
Comment #2 by jack — 2018-04-06T20:30:48Z
(In reply to kinke from comment #1) > It always uses the core.math intrinsic, which has all 3 overloads. Gah you're right, I confused it with the core.stdc.math calls.