diff options
| author | Michael Brown | 2012-03-04 16:06:45 +0100 |
|---|---|---|
| committer | Michael Brown | 2012-03-04 16:14:47 +0100 |
| commit | af96c4151ce96d04f960a79e5cf317353410bb1e (patch) | |
| tree | e9e60f0fb1faf73099628a961e7c3223608e55f1 /src/tests | |
| parent | [tls] Add missing #include <stdlib.h> (diff) | |
| download | ipxe-af96c4151ce96d04f960a79e5cf317353410bb1e.tar.gz ipxe-af96c4151ce96d04f960a79e5cf317353410bb1e.tar.xz ipxe-af96c4151ce96d04f960a79e5cf317353410bb1e.zip | |
[i386] Optimise byte-swapping functions and provide __bswap_{16,32,64}s()
Use the "bswap" instruction to shrink the size of byte-swapping code,
and provide the in-place variants __bswap_{16,32,64}s.
"bswap" is available only on 486 and later processors. (We already
assume the presence of "cpuid" and "rdtsc", which are available only
on Pentium and later processors.)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/tests')
0 files changed, 0 insertions, 0 deletions
