libatomprobe
Library for Atom Probe Tomography (APT) computation
SIZEOF_SIZE_T.cpp
Go to the documentation of this file.
1 #include <sys/types.h>
2 #include <stdint.h>
3 #include <stddef.h>
4 
5 
6 #undef KEY
7 #if defined(__i386)
8 # define KEY '_','_','i','3','8','6'
9 #elif defined(__x86_64)
10 # define KEY '_','_','x','8','6','_','6','4'
11 #elif defined(__ppc__)
12 # define KEY '_','_','p','p','c','_','_'
13 #elif defined(__ppc64__)
14 # define KEY '_','_','p','p','c','6','4','_','_'
15 #elif defined(__aarch64__)
16 # define KEY '_','_','a','a','r','c','h','6','4','_','_'
17 #elif defined(__ARM_ARCH_7A__)
18 # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','A','_','_'
19 #elif defined(__ARM_ARCH_7S__)
20 # define KEY '_','_','A','R','M','_','A','R','C','H','_','7','S','_','_'
21 #endif
22 
23 #define SIZE (sizeof(size_t))
24 char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
25  ('0' + ((SIZE / 10000)%10)),
26  ('0' + ((SIZE / 1000)%10)),
27  ('0' + ((SIZE / 100)%10)),
28  ('0' + ((SIZE / 10)%10)),
29  ('0' + (SIZE % 10)),
30  ']',
31 #ifdef KEY
32  ' ','k','e','y','[', KEY, ']',
33 #endif
34  '\0'};
35 
36 #ifdef __CLASSIC_C__
37 int main(argc, argv) int argc; char *argv[];
38 #else
39 int main(int argc, char *argv[])
40 #endif
41 {
42  int require = 0;
43  require += info_size[argc];
44  (void)argv;
45  return require;
46 }
#define SIZE
char info_size[]
int main(int argc, char *argv[])