~vcs-imports/xserver-xorg-driver-ati/master

Viewing all changes in revision 2856.

  • Committer: Michel Dänzer
  • Author(s): Jochen Rollwagen
  • Date: 2016-12-05 02:06:28 UTC
  • Revision ID: git-v1:a89c0bced423ce3e09f66edafc35642a7cc03b2f
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: