Skip to content

Commit

Permalink
fix typo in old hardware path
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Dec 31, 2024
1 parent ba7ebed commit b80e953
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/OpenEXRCore/internal_dwa_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,14 @@ countLeadingZeros(uint16_t src)
}
#else
// courtesy hacker's delight
static int ALWAYS_INLINE clz( uint32_t x )
static int ALWAYS_INLINE countLeadingZeros( uint32_t x )
{
x |= (x >> 1);
x |= (x >> 2);
x |= (x >> 4);
x |= (x >> 8);
x |= (x >> 16);
return 32 - countSetBits(x);

}
#endif

Expand Down

0 comments on commit b80e953

Please sign in to comment.