1f08c3bdfSopenharmony_cistatic int add(int x, int y)
2f08c3bdfSopenharmony_ci{
3f08c3bdfSopenharmony_ci	return x + y;
4f08c3bdfSopenharmony_ci}
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_cistatic unsigned int uadd(unsigned int x, unsigned int y)
7f08c3bdfSopenharmony_ci{
8f08c3bdfSopenharmony_ci	return x + y;
9f08c3bdfSopenharmony_ci}
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_cistatic float fadd(float x, float y)
12f08c3bdfSopenharmony_ci{
13f08c3bdfSopenharmony_ci	return x + y;
14f08c3bdfSopenharmony_ci}
15f08c3bdfSopenharmony_ci
16f08c3bdfSopenharmony_cistatic double dadd(double x, double y)
17f08c3bdfSopenharmony_ci{
18f08c3bdfSopenharmony_ci	return x + y;
19f08c3bdfSopenharmony_ci}
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_cistatic int sub(int x, int y)
22f08c3bdfSopenharmony_ci{
23f08c3bdfSopenharmony_ci	return x - y;
24f08c3bdfSopenharmony_ci}
25f08c3bdfSopenharmony_ci
26f08c3bdfSopenharmony_cistatic unsigned int usub(unsigned int x, unsigned int y)
27f08c3bdfSopenharmony_ci{
28f08c3bdfSopenharmony_ci	return x - y;
29f08c3bdfSopenharmony_ci}
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_cistatic float fsub(float x, float y)
32f08c3bdfSopenharmony_ci{
33f08c3bdfSopenharmony_ci	return x - y;
34f08c3bdfSopenharmony_ci}
35f08c3bdfSopenharmony_ci
36f08c3bdfSopenharmony_cistatic double dsub(double x, double y)
37f08c3bdfSopenharmony_ci{
38f08c3bdfSopenharmony_ci	return x - y;
39f08c3bdfSopenharmony_ci}
40f08c3bdfSopenharmony_ci
41f08c3bdfSopenharmony_cistatic int mul(int x, int y)
42f08c3bdfSopenharmony_ci{
43f08c3bdfSopenharmony_ci	return x * y;
44f08c3bdfSopenharmony_ci}
45f08c3bdfSopenharmony_ci
46f08c3bdfSopenharmony_cistatic unsigned int umul(unsigned int x, unsigned int y)
47f08c3bdfSopenharmony_ci{
48f08c3bdfSopenharmony_ci	return x * y;
49f08c3bdfSopenharmony_ci}
50f08c3bdfSopenharmony_ci
51f08c3bdfSopenharmony_cistatic float fmul(float x, float y)
52f08c3bdfSopenharmony_ci{
53f08c3bdfSopenharmony_ci	return x * y;
54f08c3bdfSopenharmony_ci}
55f08c3bdfSopenharmony_ci
56f08c3bdfSopenharmony_cistatic double dmul(double x, double y)
57f08c3bdfSopenharmony_ci{
58f08c3bdfSopenharmony_ci	return x * y;
59f08c3bdfSopenharmony_ci}
60f08c3bdfSopenharmony_ci
61f08c3bdfSopenharmony_cistatic int div(int x, int y)
62f08c3bdfSopenharmony_ci{
63f08c3bdfSopenharmony_ci	return x / y;
64f08c3bdfSopenharmony_ci}
65f08c3bdfSopenharmony_ci
66f08c3bdfSopenharmony_cistatic unsigned int udiv(unsigned int x, unsigned int y)
67f08c3bdfSopenharmony_ci{
68f08c3bdfSopenharmony_ci	return x / y;
69f08c3bdfSopenharmony_ci}
70f08c3bdfSopenharmony_ci
71f08c3bdfSopenharmony_cistatic float fdiv(float x, float y)
72f08c3bdfSopenharmony_ci{
73f08c3bdfSopenharmony_ci	return x / y;
74f08c3bdfSopenharmony_ci}
75f08c3bdfSopenharmony_ci
76f08c3bdfSopenharmony_cistatic double ddiv(double x, double y)
77f08c3bdfSopenharmony_ci{
78f08c3bdfSopenharmony_ci	return x / y;
79f08c3bdfSopenharmony_ci}
80f08c3bdfSopenharmony_ci
81f08c3bdfSopenharmony_cistatic int mod(int x, int y)
82f08c3bdfSopenharmony_ci{
83f08c3bdfSopenharmony_ci	return x % y;
84f08c3bdfSopenharmony_ci}
85f08c3bdfSopenharmony_ci
86f08c3bdfSopenharmony_cistatic unsigned int umod(unsigned int x, unsigned int y)
87f08c3bdfSopenharmony_ci{
88f08c3bdfSopenharmony_ci	return x % y;
89f08c3bdfSopenharmony_ci}
90f08c3bdfSopenharmony_ci
91f08c3bdfSopenharmony_cistatic int neg(int x)
92f08c3bdfSopenharmony_ci{
93f08c3bdfSopenharmony_ci	return -x;
94f08c3bdfSopenharmony_ci}
95f08c3bdfSopenharmony_ci
96f08c3bdfSopenharmony_cistatic unsigned int uneg(unsigned int x)
97f08c3bdfSopenharmony_ci{
98f08c3bdfSopenharmony_ci	return -x;
99f08c3bdfSopenharmony_ci}
100f08c3bdfSopenharmony_ci
101f08c3bdfSopenharmony_cistatic float fneg(float x)
102f08c3bdfSopenharmony_ci{
103f08c3bdfSopenharmony_ci	return -x;
104f08c3bdfSopenharmony_ci}
105f08c3bdfSopenharmony_ci
106f08c3bdfSopenharmony_cistatic double dneg(double x)
107f08c3bdfSopenharmony_ci{
108f08c3bdfSopenharmony_ci	return -x;
109f08c3bdfSopenharmony_ci}
110f08c3bdfSopenharmony_ci
111f08c3bdfSopenharmony_ci/*
112f08c3bdfSopenharmony_ci * check-name: Arithmetic operator code generation
113f08c3bdfSopenharmony_ci * check-command: sparsec -c $file -o tmp.o
114f08c3bdfSopenharmony_ci */
115