Remove custom lengthof()
duckhandy has an implementation already
This commit is contained in:
parent
d068e68e75
commit
e8467cebe0
2 changed files with 1 additions and 10 deletions
|
@ -18,6 +18,7 @@
|
||||||
#ifndef id1E6CCE44307549A9B6C9E4E5923AC002
|
#ifndef id1E6CCE44307549A9B6C9E4E5923AC002
|
||||||
#define id1E6CCE44307549A9B6C9E4E5923AC002
|
#define id1E6CCE44307549A9B6C9E4E5923AC002
|
||||||
|
|
||||||
|
#include "lengthof.h"
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <ciso646>
|
#include <ciso646>
|
||||||
#include <climits>
|
#include <climits>
|
||||||
|
|
|
@ -15,11 +15,6 @@
|
||||||
* along with "duckhandy". If not, see <http://www.gnu.org/licenses/>.
|
* along with "duckhandy". If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lengthof
|
|
||||||
# define lengthof(a) (sizeof(a) / sizeof((a)[0]))
|
|
||||||
# define UNDEF_lengthof
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace dhandy::bt {
|
namespace dhandy::bt {
|
||||||
namespace implem {
|
namespace implem {
|
||||||
constexpr const uint64_t table[4*256] = {0x02AAB17CF7E90C5EULL, 0xAC424B03E243A8ECULL,
|
constexpr const uint64_t table[4*256] = {0x02AAB17CF7E90C5EULL, 0xAC424B03E243A8ECULL,
|
||||||
|
@ -491,8 +486,3 @@ namespace dhandy::bt {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} //namespace dhandy::bt
|
} //namespace dhandy::bt
|
||||||
|
|
||||||
#if defined UNDEF_lengthof
|
|
||||||
# undef lengthof
|
|
||||||
# undef UNDEF_lengthof
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue