71 static float fdiv(float x, float y)
72 {
73 return x / y;
74 }
75
76 static double ddiv(double x, double y)
77 {
78 return x / y;
79 }
80
81 static int mod(int x, int y)
82 {
83 return x % y;
84 }
85
86 static unsigned int umod(unsigned int x, unsigned int y)
87 {
88 return x % y;
89 }
90
91 /*
92 * check-name: Arithmetic operator code generation
93 * check-command: sparsec -c $file -o tmp.o
94 */
|
71 static float fdiv(float x, float y)
72 {
73 return x / y;
74 }
75
76 static double ddiv(double x, double y)
77 {
78 return x / y;
79 }
80
81 static int mod(int x, int y)
82 {
83 return x % y;
84 }
85
86 static unsigned int umod(unsigned int x, unsigned int y)
87 {
88 return x % y;
89 }
90
91 static int neg(int x)
92 {
93 return -x;
94 }
95
96 static unsigned int uneg(unsigned int x)
97 {
98 return -x;
99 }
100
101 static float fneg(float x)
102 {
103 return -x;
104 }
105
106 static double dneg(double x)
107 {
108 return -x;
109 }
110
111 /*
112 * check-name: Arithmetic operator code generation
113 * check-command: sparsec -c $file -o tmp.o
114 */
|