summaryrefslogtreecommitdiff
path: root/src/theatre_module.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-03-19 18:17:10 -0400
committerAlex Deucher <alex@samba.(none)>2008-03-19 18:17:10 -0400
commit17cd42ed31814ba329a6a68edd0d75390a7da40e (patch)
tree7fbf87fdf2e6369bf0ad99aba0d91da21589dbaa /src/theatre_module.c
parentc83827b4d2b6f03c54429e757a756eb99ff8be6b (diff)
Enable BSR in Log2 functions
This patch edits RADEONLog2 and ATILog2 to use the x86 BSR instruction instead of looping through bits. It should provide a somewhat of a speed increase in this function on x86 and AMD64 architectures. Note: the BSR instruction was added with the 80386 CPU and is therefore not compatible with earlier CPUs, though I highly doubt it's even possible to use a 286 in conjunction with a Radeon. The inline assembly also works with Intel's compiler (icc).
Diffstat (limited to 'src/theatre_module.c')
0 files changed, 0 insertions, 0 deletions