mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:35:46 +01:00
define short-hand types for int32/uint32 et cetera
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "../src/util/colour32.h"
|
||||
#include "../src/util/compat/bswap.h"
|
||||
#include "../src/util/types.h"
|
||||
#include "../src/util/vec/float3.h"
|
||||
#include "test.h"
|
||||
|
||||
@@ -24,31 +25,31 @@ int test_colour32_endianess(void* d) {
|
||||
}
|
||||
|
||||
int test_bswap16(void* d) {
|
||||
uint16_t* arg = d;
|
||||
u16* arg = d;
|
||||
return assert_true(bswap16(arg[0]) == arg[1]);
|
||||
}
|
||||
|
||||
int test_bswap32(void* d) {
|
||||
uint32_t* arg = d;
|
||||
u32* arg = d;
|
||||
return assert_true(bswap32(arg[0]) == arg[1]);
|
||||
}
|
||||
|
||||
int test_bswap64(void* d) {
|
||||
uint64_t* arg = d;
|
||||
u64* arg = d;
|
||||
return assert_true(bswap64(arg[0]) == arg[1]);
|
||||
}
|
||||
|
||||
int test_bswap16_impl(void* d) {
|
||||
uint16_t* arg = d;
|
||||
u16* arg = d;
|
||||
return assert_true(bswap16_impl(arg[0]) == arg[1]);
|
||||
}
|
||||
|
||||
int test_bswap32_impl(void* d) {
|
||||
uint32_t* arg = d;
|
||||
u32* arg = d;
|
||||
return assert_true(bswap32_impl(arg[0]) == arg[1]);
|
||||
}
|
||||
|
||||
int test_bswap64_impl(void* d) {
|
||||
uint64_t* arg = d;
|
||||
u64* arg = d;
|
||||
return assert_true(bswap64_impl(arg[0]) == arg[1]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user