*: add optimization barrier to all "G trick" locations

This commit is contained in:
Denis Vlasenko
2008-02-27 18:41:59 +00:00
parent fe66a0eca1
commit 574f2f4394
32 changed files with 97 additions and 64 deletions

View File

@ -99,9 +99,9 @@ and then declare that ptr_to_globals is a pointer to it:
ptr_to_globals is declared as constant pointer.
This helps gcc understand that it won't change, resulting in noticeably
smaller code. In order to assign it, use PTR_TO_GLOBALS macro:
smaller code. In order to assign it, use SET_PTR_TO_GLOBALS macro:
PTR_TO_GLOBALS = xzalloc(sizeof(G));
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G)));
Typically it is done in <applet>_main().