KEK/utils.h
folkert van heusden 73a1add2f1 panel
2022-03-25 21:19:33 +01:00

14 lines
346 B
C++

// (C) 2018 by Folkert van Heusden
// Released under Apache License v2.0
#include <stdint.h>
#include <string>
void setBit(uint16_t & v, const int bit, const bool vb);
int parity(int v);
#define sign(a) ( ( (a) < 0 ) ? -1 : ( (a) > 0 ) )
std::string format(const char *const fmt, ...);
unsigned long get_ms();
void myusleep(uint64_t us);