Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdint> //uint8_t
- #include <cstdlib> //std::malloc() / std::free() / std::calloc()
- void f()
- {
- uint8_t* bit_array = (uint8_t*)std::calloc(512); //filled with all zeros && sizeof(uint8_t) == 1
- }
- //temp = bit_array[i]; //from m == 7 to 0 with step --m
- //temp |= 1 << m; // set bit
- //temp &= ~(1 << m); //reset bit
Advertisement
Add Comment
Please, Sign In to add comment