20 #if defined(_MSC_VER) && !defined(CPPPARSER) 50 extern EXPCL_PANDA_PUTIL
const unsigned char num_bits_on[65536];
uint16_t flood_bits_up(uint16_t x)
Returns a value such that every bit at or above the highest bit in x is 1.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_next_higher_bit(uint16_t x)
Returns the smallest power of 2 greater than x.
int get_lowest_on_bit(uint16_t x)
Returns the index of the lowest 1 bit in the word.
int get_highest_on_bit(uint16_t x)
Returns the index of the highest 1 bit in the word.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
uint16_t flood_bits_down(uint16_t x)
Returns a value such that every bit at or below the highest bit in x is 1.
int count_bits_in_word(uint16_t x)
Returns the number of 1 bits in the indicated word.