Convert stdint to short ints

This commit is contained in:
Antonio SJ Musumeci 2026-03-01 13:58:06 -06:00 • committed by trapexit
parent 53c5a2cf1e
commit 511bf47af9
63 changed files with 294 additions and 290 deletions

View file

@ -18,6 +18,8 @@
#pragma once
#include "base_types.h"
namespace endian
{
@ -26,7 +28,7 @@ namespace endian
bool
is_big(void)
{
const union { uint32_t i; char c[4]; } u = { 0x01000000 };
const union { u32 i; char c[4]; } u = { 0x01000000 };
return u.c[0];
}