container_of: export get_param/offset_from_container_of()
[smatch.git] / validation / backend / arithmetic-ops.c
blob7c299d033f1c489de64d8fdc7fab418faa687124
1 static int add(int x, int y)
3 return x + y;
6 static unsigned int uadd(unsigned int x, unsigned int y)
8 return x + y;
11 static float fadd(float x, float y)
13 return x + y;
16 static double dadd(double x, double y)
18 return x + y;
21 static int sub(int x, int y)
23 return x - y;
26 static unsigned int usub(unsigned int x, unsigned int y)
28 return x - y;
31 static float fsub(float x, float y)
33 return x - y;
36 static double dsub(double x, double y)
38 return x - y;
41 static int mul(int x, int y)
43 return x * y;
46 static unsigned int umul(unsigned int x, unsigned int y)
48 return x * y;
51 static float fmul(float x, float y)
53 return x * y;
56 static double dmul(double x, double y)
58 return x * y;
61 static int div(int x, int y)
63 return x / y;
66 static unsigned int udiv(unsigned int x, unsigned int y)
68 return x / y;
71 static float fdiv(float x, float y)
73 return x / y;
76 static double ddiv(double x, double y)
78 return x / y;
81 static int mod(int x, int y)
83 return x % y;
86 static unsigned int umod(unsigned int x, unsigned int y)
88 return x % y;
92 * check-name: Arithmetic operator code generation
93 * check-command: ./sparsec -c $file -o tmp.o