include/xrt: Add a bit-width detection define.

This commit is contained in:
Ryan Pavlik 2020-03-02 16:00:48 -06:00 committed by Jakob Bornecrantz
parent d7121e8df4
commit 98b1b11604

View file

@ -23,6 +23,11 @@
*/
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__)
#define XRT_64_BIT
#else
#define XRT_32_BIT
#endif
/*
* Printf helper attribute.