|
977 | 977 | (defn + |
978 | 978 | "Returns the sum of nums. (+) returns 0. Does not auto-promote |
979 | 979 | longs, will throw on overflow. See also: +'" |
980 | | - {:inline (nary-inline 'add 'unchecked_add) |
| 980 | + {:inline (nary-inline 'add 'UncheckedAdd) |
981 | 981 | :inline-arities >1? |
982 | 982 | :added "1.2"} |
983 | 983 | ([] 0) |
|
1147 | 1147 | (defn dec |
1148 | 1148 | "Returns a number one less than num. Does not auto-promote |
1149 | 1149 | longs, will throw on overflow. See also: dec'" |
1150 | | - {:inline (fn [x] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (~(if *unchecked-math* 'unchecked_dec 'dec) ~x))) |
| 1150 | + {:inline (fn [x] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (~(if *unchecked-math* 'UncheckedDec 'dec) ~x))) |
1151 | 1151 | :added "1.2"} |
1152 | 1152 | [x] (. github.com$glojurelang$glojure$pkg$lang.Numbers (dec x))) |
1153 | 1153 |
|
|
1175 | 1175 | (defn unchecked-dec |
1176 | 1176 | "Returns a number one less than x, a long. |
1177 | 1177 | Note - uses a primitive operator subject to overflow." |
1178 | | - {:inline (fn [x] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (unchecked_dec ~x))) |
| 1178 | + {:inline (fn [x] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (UncheckedDec ~x))) |
1179 | 1179 | :added "1.0"} |
1180 | | - [x] (. github.com$glojurelang$glojure$pkg$lang.Numbers (unchecked_dec x))) |
| 1180 | + [x] (. github.com$glojurelang$glojure$pkg$lang.Numbers (UncheckedDec x))) |
1181 | 1181 |
|
1182 | 1182 | (defn unchecked-negate-int |
1183 | 1183 | "Returns the negation of x, an int. |
|
1203 | 1203 | (defn unchecked-add |
1204 | 1204 | "Returns the sum of x and y, both long. |
1205 | 1205 | Note - uses a primitive operator subject to overflow." |
1206 | | - {:inline (fn [x y] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (unchecked_add ~x ~y))) |
| 1206 | + {:inline (fn [x y] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (UncheckedAdd ~x ~y))) |
1207 | 1207 | :added "1.0"} |
1208 | | - [x y] (. github.com$glojurelang$glojure$pkg$lang.Numbers (unchecked_add x y))) |
| 1208 | + [x y] (. github.com$glojurelang$glojure$pkg$lang.Numbers (UncheckedAdd x y))) |
1209 | 1209 |
|
1210 | 1210 | (defn unchecked-subtract-int |
1211 | 1211 | "Returns the difference of x and y, both int. |
|
1238 | 1238 | (defn unchecked-divide-int |
1239 | 1239 | "Returns the division of x by y, both int. |
1240 | 1240 | Note - uses a primitive operator subject to truncation." |
1241 | | - {:inline (fn [x y] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (unchecked_int_divide ~x ~y))) |
| 1241 | + {:inline (fn [x y] `(. github.com$glojurelang$glojure$pkg$lang.Numbers (UncheckedIntDivide ~x ~y))) |
1242 | 1242 | :added "1.0"} |
1243 | | - [x y] (. github.com$glojurelang$glojure$pkg$lang.Numbers (unchecked_int_divide x y))) |
| 1243 | + [x y] (. github.com$glojurelang$glojure$pkg$lang.Numbers (UncheckedIntDivide x y))) |
1244 | 1244 |
|
1245 | 1245 | (defn unchecked-remainder-int |
1246 | 1246 | "Returns the remainder of division of x by y, both int. |
|
0 commit comments