[Aften-devel] regparm for libaften
Status: Beta
Brought to you by:
jbr79
From: Prakash P. <pr...@pu...> - 2006-09-11 08:05:39
|
Hi, could you try, whether this gives a speed-up for you? Rationale: Using regparm=3 mostly avoids stack usage at functions calls, and thus usually makes code shorter and faster. Actually converting static inline and static functions used once shouldn't be necessary, as compiler inlines them, but it shouldn't hurt either (and in case compiler decides not to inline, we are on the safe side). I didn't change the interface functions, because this could lead to all sorts of troubles. I am not sure where to actually place the FASTCALL. gcc doesn't care too much, but I know msvc has a fastcall parameter as well, and might be a bit more bitchy... Cheers, -- (°= =°) //\ Prakash Punnoor /\\ V_/ \_V |