summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorJochen Rollwagen <joro-2013@t-online.de>2016-12-02 10:56:39 +0100
committerMichel Dänzer <michel.daenzer@amd.com>2016-12-05 11:06:28 +0900
commita89c0bced423ce3e09f66edafc35642a7cc03b2f (patch)
tree58f9137bd82e3001eaabe7bb081fc5af89b27b58 /src/drmmode_display.c
parente2942449171fe628a7726e59bcaab65e27d88563 (diff)
Calculate log base 2 in radeon.h based on clz for all platforms
This commit replaces the inline assembler code (for x86 platforms) and loop (for non-x86 platforms) in RADEONLog2 with a one-liner version based on clz (count leading zeroes). Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/drmmode_display.c')
0 files changed, 0 insertions, 0 deletions