ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:bits

This is an old revision of the document!


Bit functions

These functions allow you to work with variables as if they were arrays of bits.

  • bool getbit(int a, int i) – returns bit a[i]
  • void setbit(int a, int i) – performs a[i] = 1
  • void clrbit(int a, int i) – performs a[i] = 0
  • void tglbit(int a, int i) – performs a[i] = !a[i]
new/bits.1518973205.txt.gz · Last modified: 2018/02/18 19:00 by korshun