]> xenbits.xensource.com Git - seabios.git/commit
Use inline functions instead of macros for GET/SET_SEG segment manipulation.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 25 May 2012 02:06:39 +0000 (22:06 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 25 May 2012 02:06:39 +0000 (22:06 -0400)
commitb54ee404d7fc439ddbbd8cdf29404c6517ad8abd
tree81cdb2d43be5e75fd58674121799c5a8c92a186a
parent33d5118d4482bc6e7ec08680c1fe343bd2c73d1f
Use inline functions instead of macros for GET/SET_SEG segment manipulation.

It appears that gcc does a better job of optimization when the
SET_SEG() segment assignment assembler code is contained in an inline
function.  With the code in a function gcc appears to be able to
optimize out many redundant segment register loads.  Removing some of
these unnecessarily loads makes the code both smaller and faster.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/farptr.h