Commit [e04a8e]  Maximize  Restore  History

cpuid: optimize x86 & fix x86_64 truncation

Use xchg on x86 to avoid needing to use an intermediate register and
shave off one instruction.

Skip the whole thing on x86_64 to avoid truncating the top 32bits of
the rbx reg due to moving things around with ebx/etc...

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Mike Frysinger Mike Frysinger 2013-01-05

changed include/ltp_cpuid.h
include/ltp_cpuid.h Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks