Support public packed struct / union (#860) (#4878)

This commit is contained in:
Kefa Chen
2024-03-03 10:23:04 -05:00
committed by GitHub
parent 5e1fc6e24d
commit 5f1dc73a1b
17 changed files with 1015 additions and 43 deletions
+5
View File
@@ -396,6 +396,11 @@ int V3Number::log2b(uint32_t num) {
return 0;
}
int V3Number::log2bQuad(uint64_t num) {
if (num >> 32ULL) return 32 + log2b(num >> 32ULL);
return log2b(num);
}
//======================================================================
// Setters