#include #include //unsophisticated, should copy by dwords where available void blockcpy(void *to, const void *from, uint32_t size) { for (uint32_t i = 0; i < size; ++i) *(uint8_t *)(to++) = *(const uint8_t *)(from++); } //unsophisticated, should check by dwords wheere available __attribute__ ((__pure__)) bool blockequ(const void *a, const void *b, uint32_t size) { for (uint32_t i = 0; i < size; ++i) if (*(uint8_t *)(a++) != *(uint8_t *)(b++)) return false; return true; }