added byteorder util

This commit is contained in:
Matej Sekoranja committed 2011-09-15 20:11:13 +02:00
1 parent 9e2586fd51
commit 9c56b0604e
2 files changed
+14

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#include <epicsEndian.h>
#include <stdio.h>
int main()
{
printf("EPICS_BYTE_ORDER: %s\n", (EPICS_BYTE_ORDER == EPICS_ENDIAN_LITTLE) ? "little" : "big");
printf("EPICS_FLOAT_WORD_ORDER: %s\n", (EPICS_FLOAT_WORD_ORDER == EPICS_ENDIAN_LITTLE) ? "little" : "big");
return 0;
}