summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortersec <tersec@users.noreply.github.com>2023-06-25 20:37:21 +0200
committerGitHub <noreply@github.com>2023-06-25 20:37:21 +0200
commit3e44d5742fe7fb54d91465320ee19cb613ae0b46 (patch)
tree1e7fd927474915a022a27d905dbd576178a0725b
parent942c37865976e1535855e9206860d7db1c18b2a0 (diff)
downloadNim-3e44d5742fe7fb54d91465320ee19cb613ae0b46.tar.gz
rm zero-extension and uint conversions deprecated since 0.19.9 (#22151)
-rw-r--r--lib/system/arithmetics.nim56
1 files changed, 0 insertions, 56 deletions
diff --git a/lib/system/arithmetics.nim b/lib/system/arithmetics.nim
index 5c21e56ef..a1cb935ce 100644
--- a/lib/system/arithmetics.nim
+++ b/lib/system/arithmetics.nim
@@ -403,59 +403,3 @@ proc `%%`*(x, y: int8): int8 {.inline.}   = cast[int8](cast[uint8](x) mod cast[u
 proc `%%`*(x, y: int16): int16 {.inline.} = cast[int16](cast[uint16](x) mod cast[uint16](y))
 proc `%%`*(x, y: int32): int32 {.inline.} = cast[int32](cast[uint32](x) mod cast[uint32](y))
 proc `%%`*(x, y: int64): int64 {.inline.} = cast[int64](cast[uint64](x) mod cast[uint64](y))
-
-when not defined(nimPreviewSlimSystem):
-  proc ze*(x: int8): int {.deprecated.} =
-    ## zero extends a smaller integer type to `int`. This treats `x` as
-    ## unsigned.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int](uint(cast[uint8](x)))
-
-  proc ze*(x: int16): int {.deprecated.} =
-    ## zero extends a smaller integer type to `int`. This treats `x` as
-    ## unsigned.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int](uint(cast[uint16](x)))
-
-  proc ze64*(x: int8): int64 {.deprecated.} =
-    ## zero extends a smaller integer type to `int64`. This treats `x` as
-    ## unsigned.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int64](uint64(cast[uint8](x)))
-
-  proc ze64*(x: int16): int64 {.deprecated.} =
-    ## zero extends a smaller integer type to `int64`. This treats `x` as
-    ## unsigned.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int64](uint64(cast[uint16](x)))
-
-  proc ze64*(x: int32): int64 {.deprecated.} =
-    ## zero extends a smaller integer type to `int64`. This treats `x` as
-    ## unsigned.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int64](uint64(cast[uint32](x)))
-
-  proc ze64*(x: int): int64 {.deprecated.} =
-    ## zero extends a smaller integer type to `int64`. This treats `x` as
-    ## unsigned. Does nothing if the size of an `int` is the same as `int64`.
-    ## (This is the case on 64 bit processors.)
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int64](uint64(cast[uint](x)))
-
-  proc toU8*(x: int): int8 {.deprecated.} =
-    ## treats `x` as unsigned and converts it to a byte by taking the last 8 bits
-    ## from `x`.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int8](x)
-
-  proc toU16*(x: int): int16 {.deprecated.} =
-    ## treats `x` as unsigned and converts it to an `int16` by taking the last
-    ## 16 bits from `x`.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int16](x)
-
-  proc toU32*(x: int64): int32 {.deprecated.} =
-    ## treats `x` as unsigned and converts it to an `int32` by taking the
-    ## last 32 bits from `x`.
-    ## **Deprecated since version 0.19.9**: Use unsigned integers instead.
-    cast[int32](x)
id=66ee78a7bbc209d640c3c360d8973248bc66c898'>^
ceeb92d4 ^
607ddf33 ^
fa94f4d9 ^
294b2ab3 ^
fa94f4d9 ^
607ddf33 ^
fa94f4d9 ^

294b2ab3 ^































6d12a8c4 ^
294b2ab3 ^




















fa94f4d9 ^


607ddf33 ^

ceeb92d4 ^
607ddf33 ^
fa94f4d9 ^





294b2ab3 ^
fa94f4d9 ^

607ddf33 ^

ceeb92d4 ^
607ddf33 ^
fa94f4d9 ^



607ddf33 ^
fa94f4d9 ^
3d8b137c ^
607ddf33 ^


29cc15d6 ^
aaf61a53 ^
ada5eb55 ^
fa94f4d9 ^


607ddf33 ^
2d91279b ^
fa94f4d9 ^
be422222 ^
607ddf33 ^
3d8b137c ^
f116818c ^
607ddf33 ^
2d91279b ^
607ddf33 ^
3d8b137c ^



f116818c ^
607ddf33 ^
2d91279b ^
607ddf33 ^
fa94f4d9 ^

2d91279b ^
fa94f4d9 ^
be422222 ^
607ddf33 ^
2d91279b ^
607ddf33 ^


ea19d0dc ^
2d91279b ^
607ddf33 ^



fa94f4d9 ^


6f65d591 ^
e00d4854 ^
fa94f4d9 ^
294b2ab3 ^



7b38bc8e ^
6d12a8c4 ^
fa94f4d9 ^



294b2ab3 ^
fa94f4d9 ^


ceeb92d4 ^
607ddf33 ^
7b38bc8e ^
fa94f4d9 ^





ceeb92d4 ^
fa94f4d9 ^
fa94f4d9 ^


607ddf33 ^
fa94f4d9 ^

294b2ab3 ^
fa94f4d9 ^


7b38bc8e ^
ceeb92d4 ^
fa94f4d9 ^



e0d69d3b ^

6f65d591 ^
e0d69d3b ^


294b2ab3 ^


6f65d591 ^
e0d69d3b ^






11569717 ^

e0d69d3b ^
294b2ab3 ^
e0d69d3b ^

ceeb92d4 ^
607ddf33 ^
e0d69d3b ^

ceeb92d4 ^
e0d69d3b ^



607ddf33 ^
e0d69d3b ^

294b2ab3 ^
e0d69d3b ^




ceeb92d4 ^
607ddf33 ^
e0d69d3b ^

ceeb92d4 ^
e0d69d3b ^


95425355 ^

6f65d591 ^
95425355 ^


294b2ab3 ^


6f65d591 ^
294b2ab3 ^
95425355 ^






294b2ab3 ^
95425355 ^


ceeb92d4 ^
607ddf33 ^
95425355 ^

ceeb92d4 ^
607ddf33 ^
95425355 ^


607ddf33 ^
95425355 ^


294b2ab3 ^
95425355 ^




ceeb92d4 ^
607ddf33 ^
95425355 ^

ceeb92d4 ^
607ddf33 ^
95425355 ^


11569717 ^


95425355 ^

294b2ab3 ^
95425355 ^
294b2ab3 ^
95425355 ^

ceeb92d4 ^
607ddf33 ^
95425355 ^

ceeb92d4 ^
95425355 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319