added byteorder util

This commit is contained in:
Matej Sekoranja
2011-09-15 20:11:13 +02:00
parent 9e2586fd51
commit 9c56b0604e
2 changed files with 14 additions and 0 deletions

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