lua-users home
lua-l archive

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


On 3/11/2009, at 12:14 AM, Mike Pall wrote:

Geoff Leyland wrote:
=math.random()
1.7863937924312

Ok, so Apple thinks -fpic is a good on x86. And I'm stupid because
I broke it.

Patch attached. Thank you for the report!

Fixed!  Thanks.

$ luajit-2.0.0-beta1
LuaJIT 2.0.0-beta1 -- Copyright (C) 2005-2009 Mike Pall. http://luajit.org/
JIT: ON CMOV SSE2 SSE4.1 fold cse dce fwd dse narrow loop fuse
> min, max=math.huge, -math.huge
> for i = 1, 1000 do local r = math.random() min = math.min(min, r) max = math.max(max, r) end
> =min, max
0.00123587576387	0.99956828411132

Cheers,
Geoff