<div dir="ltr">I would say he has, becaue AFAIK mir.math.common using LLVM intrinsics</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 7, 2018 at 11:53 PM, Guillaume Piolat via Digitalmars-d-learn <span dir="ltr"><<a href="mailto:digitalmars-d-learn@puremagic.com" target="_blank">digitalmars-d-learn@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Saturday, 7 April 2018 at 20:33:13 UTC, Arun Chandrasekaran wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Saturday, 7 April 2018 at 19:14:27 UTC, Daniel Kozak wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
or for ldc <a href="http://docs.algorithm.dlang.io/latest/mir_math_common.html" rel="noreferrer" target="_blank">http://docs.algorithm.dlang.io<wbr>/latest/mir_math_common.html</a><br>
<br>
On Sat, Apr 7, 2018 at 9:10 PM, Daniel Kozak <<a href="mailto:kozzi11@gmail.com" target="_blank">kozzi11@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
can you try it with c math functions?<br>
<br>
instead of std.math, try to use core.stdc.math<br>
<br>
On Sat, Apr 7, 2018 at 8:53 PM, Arun Chandrasekaran via Digitalmars-d-learn <<a href="mailto:digitalmars-d-learn@puremagic.com" target="_blank">digitalmars-d-learn@puremagic<wbr>.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[...]<br>
</blockquote></blockquote></blockquote>
<br>
Much better with mir.math.common, still a bit slower than C (even with larger loops):<br>
<br>
10^7 iterations using sigmoid1: 168 ms<br>
10^7 iterations using sigmoid2: 39 ms<br>
<br>
Also LDC optimized away the computation. So I had to modify the code a bit.<br>
<br>
</blockquote>
<br>
<br></span>
Have you tried LLVM intrinsics? say llvm_exp<br>
</blockquote></div><br></div>