File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -436,14 +436,22 @@ impl float : Ord {
436436}
437437
438438impl float: num:: Num {
439+ #[ inline( always) ]
439440 pub pure fn add ( other : & float ) -> float { return self + * other; }
441+ #[ inline( always) ]
440442 pub pure fn sub ( other : & float ) -> float { return self - * other; }
443+ #[ inline( always) ]
441444 pub pure fn mul ( other : & float ) -> float { return self * * other; }
445+ #[ inline( always) ]
442446 pub pure fn div ( other : & float ) -> float { return self / * other; }
447+ #[ inline( always) ]
443448 pure fn modulo ( other : & float ) -> float { return self % * other; }
449+ #[ inline( always) ]
444450 pure fn neg ( ) -> float { return -self ; }
445451
452+ #[ inline( always) ]
446453 pure fn to_int ( ) -> int { return self as int ; }
454+ #[ inline( always) ]
447455 static pure fn from_int( n: int ) -> float { return n as float ; }
448456}
449457
You can’t perform that action at this time.
0 commit comments