]> www.ginac.de Git - cln.git/blob - src/base/digitseq/cl_DS_endian.h
Initial revision
[cln.git] / src / base / digitseq / cl_DS_endian.h
1 // Digit sequence endianness
2
3 #ifndef _CL_DS_ENDIAN_H
4 #define _CL_DS_ENDIAN_H
5
6 #include "cl_gmpconfig.h"
7
8 // Set this to 1 for big-endian digit ordering in memory,
9 // set this to 0 for little-endian digit ordering in memory.
10 // We now support both.
11 #ifdef CL_USE_GMP
12   // Use of gmp requires CL_DS_BIG_ENDIAN_P = 0.
13   #define CL_DS_BIG_ENDIAN_P  0
14 #else
15   // In general, the digit ordering has nearly no effect on speed.
16   // We have used the big-endian ordering for a long time, so let's use
17   // the little-endian ordering now for at least the same time :-)
18   #define CL_DS_BIG_ENDIAN_P  0
19 #endif
20
21 #endif /* _CL_DS_ENDIAN_H */