mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
This commit is contained in:
parent
31df1eea27
commit
5bed6ca80f
2 changed files with 2 additions and 1 deletions
|
|
@ -89,6 +89,7 @@ void CSyntax::InitKeywords()
|
|||
"dim3", "", "__host__", "__device__", "__global__", "__noinline__", "__forceinline__",
|
||||
"__inline_hint__", "__constant__", "__shared__", "__grid_constant__", "__managed__",
|
||||
"__restrict__ ", "gridDim", "blockIdx", "blockDim", "threadIdx", "warpSize",
|
||||
"size_t", "intptr_t", "uintptr_t",
|
||||
NULL
|
||||
};
|
||||
static const char *usc[] = {
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int CountBits64(uint64 mask)
|
|||
return __builtin_popcountll(mask);
|
||||
#elif defined(_MSC_VER)
|
||||
#if defined(_WIN64)
|
||||
return __popcnt64(mask);
|
||||
return (int)__popcnt64(mask);
|
||||
#else
|
||||
return CountBits(static_cast<dword>(mask)) + CountBits(static_cast<dword>(mask >> 32));
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue