mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
llvmpipe: return zero from floor_pot(zero)
This commit is contained in:
parent
fd4c6bd135
commit
8e8a42ffc5
1 changed files with 3 additions and 1 deletions
|
|
@ -447,8 +447,10 @@ do_triangle_ccw(struct lp_setup_context *setup,
|
|||
static INLINE uint32_t
|
||||
floor_pot(uint32_t n)
|
||||
{
|
||||
assert(n);
|
||||
#if defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86)
|
||||
if (n == 0)
|
||||
return 0;
|
||||
|
||||
__asm__("bsr %1,%0"
|
||||
: "=r" (n)
|
||||
: "rm" (n));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue