lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 4/22/2013 2:58 PM, Ross Bencina wrote:
On 22/04/2013 6:26 AM, [ex] wrote:
[snip snip]
I suspect this is a bug because the slow alternative is not
giving me
the same result, but I can be missing something.

If you have an SSE capable processor I think there is a fast
alternative using SSE.

Some discussion here:
http://www.musicdsp.org/showone.php?id=246

My bad. As discussed in the link, there are specific instructions that truncate. So double to int can use CVTTSD2SI under SSE2.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia