| 96 | } |
| 97 | |
| 98 | void msSetBit(ms_bitarray array, int index, int value) |
| 99 | { |
| 100 | array += index / MS_ARRAY_BIT; |
| 101 | if (value) |
| 102 | *array |= 1 << (index % MS_ARRAY_BIT); /* set bit */ |
| 103 | else |
| 104 | *array &= ~(1 << (index % MS_ARRAY_BIT)); /* clear bit */ |
| 105 | } |
| 106 | |
| 107 | void msSetAllBits(ms_bitarray array, int numbits, int value) |
| 108 | { |
no outgoing calls
no test coverage detected