This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| new:bits [2018/02/18 17:15] – korshun | new:bits [2018/02/19 10:29] (current) – korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Bit functions ====== | ====== Bit functions ====== | ||
| + | |||
| + | These functions are for bit math. | ||
| + | |||
| + | ===== Powers of two ===== | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| ===== Working with bit arrays ===== | ===== Working with bit arrays ===== | ||
| Line 5: | Line 12: | ||
| These functions allow you to work with variables as if they were arrays of bits: | These functions allow you to work with variables as if they were arrays of bits: | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| ===== Unsetting bit flags ===== | ===== Unsetting bit flags ===== | ||