gcc.dg/pr90838-2.c: Replace long with long long
Since gcc.dg/pr90838-2.c is only for 64-bit integer, replace long with long long for ILP32 targets. * gcc.dg/pr90838-2.c (ctz4): Replace long with long long. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
aa68eb8d56
commit
456f5ef81f
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ static const char table[128] = {
|
|||
57, 58, 59, 60, 61, 62, 63, 64
|
||||
};
|
||||
|
||||
int ctz4 (unsigned long x)
|
||||
int ctz4 (unsigned long long x)
|
||||
{
|
||||
unsigned long lsb = x & -x;
|
||||
unsigned long long lsb = x & -x;
|
||||
return table[(lsb * magic) >> 58];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue