[dmd-internals] math intrinsics
Brad Roberts
braddr at puremagic.com
Sat Apr 2 12:35:41 PDT 2011
Yes, std.math publicly imports core.math in the pull requests I submitted last night.
Can you point to concrete examples / bug reports for the optlink issue?
Intrinsics aren't compiler specific, they tend to be platform specific. But even when not done as a builtin, they can
just as easily be written a d code or asm in the runtime.
For what it's worth, I created the pull requests for all three packages and I've tested it on both linux32 and win32 and
everything passes just fine.
Later,
Brad
On 4/2/2011 8:42 AM, Don Clugston wrote:
> There have been linking problems (at least with optlink) when two
> modules have the same filename. I'm a bit wary of the name core.math.
> Now that I think about it a bit more, I've changed my mind. I don't
> think it's a good idea. The fact that (say) sin is an intrinsic is
> DMD-specific. It won't be an intrinsic on many other compilers.
>
> On 2 April 2011 16:13, David Simcha <dsimcha at gmail.com> wrote:
>> As long as core.math would be publicly imported by std.math instead of being
>> yet another import to remember, I'm on board.
>>
>> On Sat, Apr 2, 2011 at 4:24 AM, Don Clugston <dclugston at googlemail.com>
>> wrote:
>>>
>>> Great, if everything still works.
>>>
>>> On 2 April 2011 08:06, Brad Roberts <braddr at puremagic.com> wrote:
>>>> Any objection to moving the math intrinsics from phobos std/math.d to
>>>> druntime core/math.d similar to the bitops? I'll
>>>> be happy to whip up the pull requests.
>>>> _______________________________________________
More information about the dmd-internals
mailing list