Skip to content
Snippets Groups Projects
Commit 3dff8ed1 authored by René Kijewski's avatar René Kijewski
Browse files

Add compile time checks to quad.h

parent 76bbac4c
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,9 @@ ...@@ -53,6 +53,9 @@
#include <limits.h> #include <limits.h>
#include <machine/endian.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 long long quad_t;
typedef unsigned long long u_quad_t; typedef unsigned long long u_quad_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment