fio: support modulus for the arithmetic parser
[fio.git] / arch / arch.h
CommitLineData
ebac4655
JA
1#ifndef ARCH_H
2#define ARCH_H
3
4enum {
cca84643 5 arch_x86_64 = 1,
ebac4655
JA
6 arch_i386,
7 arch_ppc,
8 arch_ia64,
9 arch_s390,
10 arch_alpha,
697a606c
JA
11 arch_sparc,
12 arch_sparc64,
a1ea676e 13 arch_arm,
29721c9c 14 arch_sh,
85a86319 15 arch_hppa,
5499f7ff 16 arch_mips,
78c8831e 17 arch_aarch64,
fa77073a
JA
18
19 arch_generic,
cca84643
JA
20
21 arch_nr,
ebac4655
JA
22};
23
5f739e0e
NI
24enum {
25 ARCH_FLAG_1 = 1 << 0,
26 ARCH_FLAG_2 = 1 << 1,
27 ARCH_FLAG_3 = 1 << 2,
28 ARCH_FLAG_4 = 1 << 3,
29};
30
4247d1a9
JA
31extern unsigned long arch_flags;
32
ebac4655
JA
33#if defined(__i386__)
34#include "arch-x86.h"
35#elif defined(__x86_64__)
36#include "arch-x86_64.h"
2afd826b 37#elif defined(__powerpc__) || defined(__powerpc64__) || defined(__ppc__)
ebac4655
JA
38#include "arch-ppc.h"
39#elif defined(__ia64__)
40#include "arch-ia64.h"
41#elif defined(__alpha__)
42#include "arch-alpha.h"
43#elif defined(__s390x__) || defined(__s390__)
44#include "arch-s390.h"
697a606c
JA
45#elif defined(__sparc__)
46#include "arch-sparc.h"
47#elif defined(__sparc64__)
48#include "arch-sparc64.h"
a1ea676e
KS
49#elif defined(__arm__)
50#include "arch-arm.h"
c28b912f
JA
51#elif defined(__mips__) || defined(__mips64__)
52#include "arch-mips.h"
29721c9c
NI
53#elif defined(__sh__)
54#include "arch-sh.h"
85a86319
JA
55#elif defined(__hppa__)
56#include "arch-hppa.h"
78c8831e
DK
57#elif defined(__aarch64__)
58#include "arch-aarch64.h"
ebac4655 59#else
fa77073a
JA
60#warning "Unknown architecture, attempting to use generic model."
61#include "arch-generic.h"
ebac4655
JA
62#endif
63
8f7e39dd
JA
64#ifdef ARCH_HAVE_FFZ
65#define ffz(bitmask) arch_ffz(bitmask)
66#else
67#include "../lib/ffz.h"
68#endif
69
d3cc4ebf
JA
70#ifndef ARCH_HAVE_INIT
71static inline int arch_init(char *envp[])
72{
73 return 0;
74}
75#endif
76
ebac4655 77#endif