[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Possible bug in MS_ASMTRICK? (Lua 5.2)
- From: KHMan <keinhong@...>
- Date: Mon, 22 Apr 2013 19:36:04 +0800
On 4/22/2013 2:58 PM, Ross Bencina wrote:
On 22/04/2013 6:26 AM, [ex] wrote:
I suspect this is a bug because the slow alternative is not
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:
My bad. As discussed in the link, there are specific instructions
that truncate. So double to int can use CVTTSD2SI under SSE2.
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia