← Back to index
|
Original Bugzilla link
Bug 17008 – use ldc/gdc intrinsics in std.math
Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-12-22T16:34:13Z
Last change time
2017-12-12T23:06:39Z
Assigned to
No Owner
Creator
greenify
Comments
Comment #0
by greeenify — 2016-12-22T16:34:13Z
like e.g. used in Mir:
https://github.com/libmir/mir-math/blob/master/source/mir/math/internal.d
Comment #1
by kinke — 2016-12-22T17:20:30Z
LDC's Phobos has a modified std.math, where we use the LLVM intrinsics, e.g.,
https://github.com/ldc-developers/phobos/blob/ldc/std/math.d#L657.
I don't see a point in upstreaming these backend-specific mods.
Comment #2
by ibuclaw — 2016-12-31T18:51:46Z
Use core.math to access intrinsics or core.stdc.math to access builtins C functions.
Comment #3
by ibuclaw — 2017-12-12T23:06:39Z
As per my comments (and kinke representing ldc).