mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Add compile time checks to quad.h
This commit is contained in:
parent
76bbac4c2b
commit
3dff8ed10c
@ -53,6 +53,9 @@
|
||||
#include <limits.h>
|
||||
|
||||
#include <machine/endian.h>
|
||||
typedef char ___QUAD_ASSERT__LENGHTS[sizeof (long long) == 2*sizeof (int) ? +1 : -1];
|
||||
typedef char ___QUAD_ASSERT__2COMPLEMENT[-1234 == (~1234 + 1) ? +1 : -1];
|
||||
|
||||
typedef long long quad_t;
|
||||
typedef unsigned long long u_quad_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user