Commit f99344a
committed
Stabilize saturating_abs and saturating_neg
Stabilizes the following signed integer functions with saturation
mechanics:
* saturating_abs()
* saturating_neg()
Closes rust-lang#599831 parent ff4df04 commit f99344a
File tree
3 files changed
+4
-8
lines changed- src
- libcore
- num
- tests
- test/ui/consts
3 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | | - | |
1118 | | - | |
| 1117 | + | |
1119 | 1118 | | |
1120 | 1119 | | |
1121 | 1120 | | |
| |||
1124 | 1123 | | |
1125 | 1124 | | |
1126 | 1125 | | |
1127 | | - | |
| 1126 | + | |
1128 | 1127 | | |
1129 | 1128 | | |
1130 | 1129 | | |
| |||
1141 | 1140 | | |
1142 | 1141 | | |
1143 | 1142 | | |
1144 | | - | |
1145 | | - | |
| 1143 | + | |
1146 | 1144 | | |
1147 | 1145 | | |
1148 | 1146 | | |
| |||
1151 | 1149 | | |
1152 | 1150 | | |
1153 | 1151 | | |
1154 | | - | |
| 1152 | + | |
1155 | 1153 | | |
1156 | 1154 | | |
1157 | 1155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
0 commit comments