// Copyright 2023 alexevier // licensed under the zlib license #include #include"test.h" void testMemReverseN(void){ testStart("memory Reverse #"); const char* err = NULL; uint16_t val16 = 0xF35B; uint16_t new16 = lexlibMemReverse16(val16); if(new16 != 0x5BF3) err = "16"; uint32_t val32 = 0xC0FFEE11; uint32_t new32 = lexlibMemReverse32(val32); if(new32 != 0x11EEFFC0) err = "32"; uint64_t val64 = 0x1122AABBCCDDEEFF; uint64_t new64 = lexlibMemReverse64(val64); if(new64 != 0xFFEEDDCCBBAA2211) err = "64"; testEnd(err); }