1 /// 2 /// @file bits.hpp 3 /// @brief Bitmasks to unset bits in the sieve array 4 /// 5 /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> 6 /// 7 /// This file is distributed under the BSD License. See the COPYING 8 /// file in the top level directory. 9 /// 10 11 #ifndef BITS_HPP 12 #define BITS_HPP 13 14 enum 15 { 16 BIT0 = 0xfe, // 11111110 17 BIT1 = 0xfd, // 11111101 18 BIT2 = 0xfb, // 11111011 19 BIT3 = 0xf7, // 11110111 20 BIT4 = 0xef, // 11101111 21 BIT5 = 0xdf, // 11011111 22 BIT6 = 0xbf, // 10111111 23 BIT7 = 0x7f // 01111111 24 }; 25 26 #endif 27