[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_number2integer
- From: Tony Finch <dot@...>
- Date: Thu, 25 Sep 2008 18:45:21 +0100
On Thu, 25 Sep 2008, Mike Pall wrote:
> Apparently the call overhead for floor() is the main factor here
> because the '%' operator also uses floor() (the inlined C library
It is usually not inlined. As far as I can tell this is because it has
caused too many optimizer bugs in the past. The implementation uses really
nasty fiddling of the FP rounding mode - it's surprisingly non-trivial.
f.anthony.n.finch <firstname.lastname@example.org> http://dotat.at/
ROCKALL MALIN HEBRIDES: SOUTHERLY 5 TO 7, INCREASING GALE 8, PERHAPS SEVERE
GALE 9, LATER IN ROCKALL AND HEBRIDES. MODERATE OR ROUGH, INCREASING VERY
ROUGH OR HIGH LATER IN ROCKALL AND HEBRIDES. OCCASIONAL RAIN. MODERATE OR
GOOD, OCCASIONALLY POOR IN ROCKALL AND HEBRIDES.