1
0
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:
René Kijewski 2014-02-06 18:11:03 +01:00
parent 76bbac4c2b
commit 3dff8ed10c

View File

@ -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;