mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Add POPCOUNT function (#2166)
This commit is contained in:
1 parent
ff6f1699e9
commit
d95e9260e4
13 files changed
+45
-3
No files matched your search
@@ -9,3 +9,9 @@ assert TZCOUNT(-1) == 0
|
||||
assert TZCOUNT($80000000) == 31
|
||||
|
||||
assert TZCOUNT(1.0) == 16
|
||||
|
||||
assert POPCOUNT(0) == 0
|
||||
assert POPCOUNT(1) == 1
|
||||
assert POPCOUNT(-1) == 32
|
||||
assert POPCOUNT(%10101100) == 4
|
||||
assert POPCOUNT(-%10101100) == 27
|
||||
Reference in new issue
Block a user