mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Fix some -Wsuggest-attribute=const suggestions.
This commit is contained in:
+2
-2
@@ -287,8 +287,8 @@ void V3Number::setNames(AstNode* nodep) {
|
||||
|
||||
int V3Number::log2b(uint32_t num) {
|
||||
// See also opCLog2
|
||||
for (int bit=31; bit>0; bit--) if (num & (VL_ULL(1)<<bit)) return(bit);
|
||||
return(0);
|
||||
for (int bit=31; bit>0; bit--) if (num & (VL_ULL(1)<<bit)) return bit;
|
||||
return 0;
|
||||
}
|
||||
|
||||
//======================================================================
|
||||
|
||||
Reference in New Issue
Block a user