File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 361adf9f862c9127adf245c681c8c89ef2edda11
2
+ refs/heads/master: 8dba51b87c2889df2be4f9795fbec4179d94343d
Original file line number Diff line number Diff line change @@ -223,6 +223,36 @@ fn neg_infinity() -> float {
223
223
ret -1. /0. ;
224
224
}
225
225
226
+ pure fn add ( x : float , y : float ) -> float { ret x + y; }
227
+
228
+ pure fn sub ( x : float , y : float ) -> float { ret x - y; }
229
+
230
+ pure fn mul ( x : float , y : float ) -> float { ret x * y; }
231
+
232
+ pure fn div ( x : float , y : float ) -> float { ret x / y; }
233
+
234
+ pure fn rem ( x : float , y : float ) -> float { ret x % y; }
235
+
236
+ pure fn lt ( x : float , y : float ) -> bool { ret x < y; }
237
+
238
+ pure fn le ( x : float , y : float ) -> bool { ret x <= y; }
239
+
240
+ pure fn eq ( x : float , y : float ) -> bool { ret x == y; }
241
+
242
+ pure fn ne ( x : float , y : float ) -> bool { ret x != y; }
243
+
244
+ pure fn ge ( x : float , y : float ) -> bool { ret x >= y; }
245
+
246
+ pure fn gt ( x : float , y : float ) -> bool { ret x > y; }
247
+
248
+ pure fn positive ( x : float ) -> bool { ret x > 0. ; }
249
+
250
+ pure fn negative ( x : float ) -> bool { ret x < 0. ; }
251
+
252
+ pure fn nonpositive ( x : float ) -> bool { ret x <= 0. ; }
253
+
254
+ pure fn nonnegative ( x : float ) -> bool { ret x >= 0. ; }
255
+
226
256
//
227
257
// Local Variables:
228
258
// mode: rust
You can’t perform that action at this time.
0 commit comments