Skip to content

Commit 9eb781d

Browse files
committed
Switch to optimized ffsl supported on more platforms
In file included from Source/GmmLib/TranslationTable/GmmAuxTable.cpp:30: Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h: In function ‘int _BitScanForward(uint32_t*, uint32_t)’: Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:63:9: error: ‘ffsl’ was not declared in this scope i = ffsl(mask); ^~~~ Source/GmmLib/TranslationTable/../TranslationTable/GmmUmdTranslationTable.h:63:9: note: suggested alternative: ‘ffs’ i = ffsl(mask); ^~~~ ffs
1 parent 6cb8a44 commit 9eb781d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/GmmLib/TranslationTable/GmmUmdTranslationTable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static inline int _BitScanForward(uint32_t *index, uint32_t mask)
6060
{
6161
int i;
6262

63-
i = ffsl(mask);
63+
i = __builtin_ffsl(mask);
6464
if(i > 0)
6565
{
6666
*index = (uint32_t)(i - 1);

0 commit comments

Comments
 (0)