refactor: use bitsizeof() instead of 8 * sizeof()