/*====================================================/ / Name: bitFunctions.h / / Author: Joy Schoenberger / / Date: April 2002 / / Purpose: Header file for bitwise functions for / / CS710 Masters research project: Genetic / / Algorithms for Musical Composition with / / Coherency Through Genotype / /====================================================*/ #include #include // The purpose of these functions is pretty self-explanatory // The names say it all unsigned int setBit(unsigned int value, int index); unsigned int setAll(); bool isSet(unsigned int value, int index); unsigned int unset(unsigned int value, int index); unsigned int clearAll(); int numSet(unsigned int value);