@@ -109,7 +109,6 @@ func (z *Int) Format(s fmt.State, ch rune) {
109
109
// SetBytes8 is identical to SetBytes(in[:8]), but panics is input is too short
110
110
func (z * Int ) SetBytes8 (in []byte ) * Int {
111
111
_ = in [7 ] // bounds check hint to compiler; see golang.org/issue/14808
112
-
113
112
z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
114
113
z [0 ] = binary .BigEndian .Uint64 (in [0 :8 ])
115
114
return z
@@ -118,7 +117,6 @@ func (z *Int) SetBytes8(in []byte) *Int {
118
117
// SetBytes16 is identical to SetBytes(in[:16]), but panics is input is too short
119
118
func (z * Int ) SetBytes16 (in []byte ) * Int {
120
119
_ = in [15 ] // bounds check hint to compiler; see golang.org/issue/14808
121
-
122
120
z [3 ], z [2 ] = 0 , 0
123
121
z [1 ] = binary .BigEndian .Uint64 (in [0 :8 ])
124
122
z [0 ] = binary .BigEndian .Uint64 (in [8 :16 ])
@@ -128,7 +126,6 @@ func (z *Int) SetBytes16(in []byte) *Int {
128
126
// SetBytes16 is identical to SetBytes(in[:24]), but panics is input is too short
129
127
func (z * Int ) SetBytes24 (in []byte ) * Int {
130
128
_ = in [23 ] // bounds check hint to compiler; see golang.org/issue/14808
131
-
132
129
z [3 ] = 0
133
130
z [2 ] = binary .BigEndian .Uint64 (in [0 :8 ])
134
131
z [1 ] = binary .BigEndian .Uint64 (in [8 :16 ])
@@ -138,7 +135,6 @@ func (z *Int) SetBytes24(in []byte) *Int {
138
135
139
136
func (z * Int ) SetBytes32 (in []byte ) * Int {
140
137
_ = in [31 ] // bounds check hint to compiler; see golang.org/issue/14808
141
-
142
138
z [3 ] = binary .BigEndian .Uint64 (in [0 :8 ])
143
139
z [2 ] = binary .BigEndian .Uint64 (in [8 :16 ])
144
140
z [1 ] = binary .BigEndian .Uint64 (in [16 :24 ])
@@ -147,20 +143,21 @@ func (z *Int) SetBytes32(in []byte) *Int {
147
143
}
148
144
149
145
func (z * Int ) SetBytes1 (in []byte ) * Int {
150
- z [3 ], z [2 ], z [1 ], z [0 ] = 0 , 0 , 0 , uint64 (in [0 ])
146
+ z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
147
+ z [0 ] = uint64 (in [0 ])
151
148
return z
152
149
}
153
150
154
151
func (z * Int ) SetBytes9 (in []byte ) * Int {
155
152
_ = in [8 ] // bounds check hint to compiler; see golang.org/issue/14808
156
-
157
- z [3 ], z [2 ], z [1 ], z [0 ] = 0 , 0 , uint64 (in [0 ]), binary .BigEndian .Uint64 (in [1 :9 ])
153
+ z [3 ], z [2 ] = 0 , 0
154
+ z [1 ] = uint64 (in [0 ])
155
+ z [0 ] = binary .BigEndian .Uint64 (in [1 :9 ])
158
156
return z
159
157
}
160
158
161
159
func (z * Int ) SetBytes17 (in []byte ) * Int {
162
160
_ = in [16 ] // bounds check hint to compiler; see golang.org/issue/14808
163
-
164
161
z [3 ] = 0
165
162
z [2 ] = uint64 (in [0 ])
166
163
z [1 ] = binary .BigEndian .Uint64 (in [1 :9 ])
@@ -170,7 +167,6 @@ func (z *Int) SetBytes17(in []byte) *Int {
170
167
171
168
func (z * Int ) SetBytes25 (in []byte ) * Int {
172
169
_ = in [24 ] // bounds check hint to compiler; see golang.org/issue/14808
173
-
174
170
z [3 ] = uint64 (in [0 ])
175
171
z [2 ] = binary .BigEndian .Uint64 (in [1 :9 ])
176
172
z [1 ] = binary .BigEndian .Uint64 (in [9 :17 ])
@@ -180,27 +176,21 @@ func (z *Int) SetBytes25(in []byte) *Int {
180
176
181
177
func (z * Int ) SetBytes2 (in []byte ) * Int {
182
178
_ = in [1 ] // bounds check hint to compiler; see golang.org/issue/14808
183
-
184
- z [3 ] = 0
185
- z [2 ] = 0
186
- z [1 ] = 0
179
+ z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
187
180
z [0 ] = uint64 (binary .BigEndian .Uint16 (in [0 :2 ]))
188
181
return z
189
182
}
190
183
191
184
func (z * Int ) SetBytes10 (in []byte ) * Int {
192
185
_ = in [9 ] // bounds check hint to compiler; see golang.org/issue/14808
193
-
194
- z [3 ] = 0
195
- z [2 ] = 0
186
+ z [3 ], z [2 ] = 0 , 0
196
187
z [1 ] = uint64 (binary .BigEndian .Uint16 (in [0 :2 ]))
197
188
z [0 ] = binary .BigEndian .Uint64 (in [2 :10 ])
198
189
return z
199
190
}
200
191
201
192
func (z * Int ) SetBytes18 (in []byte ) * Int {
202
193
_ = in [17 ] // bounds check hint to compiler; see golang.org/issue/14808
203
-
204
194
z [3 ] = 0
205
195
z [2 ] = uint64 (binary .BigEndian .Uint16 (in [0 :2 ]))
206
196
z [1 ] = binary .BigEndian .Uint64 (in [2 :10 ])
@@ -210,7 +200,6 @@ func (z *Int) SetBytes18(in []byte) *Int {
210
200
211
201
func (z * Int ) SetBytes26 (in []byte ) * Int {
212
202
_ = in [25 ] // bounds check hint to compiler; see golang.org/issue/14808
213
-
214
203
z [3 ] = uint64 (binary .BigEndian .Uint16 (in [0 :2 ]))
215
204
z [2 ] = binary .BigEndian .Uint64 (in [2 :10 ])
216
205
z [1 ] = binary .BigEndian .Uint64 (in [10 :18 ])
@@ -220,25 +209,21 @@ func (z *Int) SetBytes26(in []byte) *Int {
220
209
221
210
func (z * Int ) SetBytes3 (in []byte ) * Int {
222
211
_ = in [2 ] // bounds check hint to compiler; see golang.org/issue/14808
223
- z [3 ] = 0
224
- z [2 ] = 0
225
- z [1 ] = 0
212
+ z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
226
213
z [0 ] = uint64 (binary .BigEndian .Uint16 (in [1 :3 ])) | uint64 (in [0 ])<< 16
227
214
return z
228
215
}
229
216
230
217
func (z * Int ) SetBytes11 (in []byte ) * Int {
231
218
_ = in [10 ] // bounds check hint to compiler; see golang.org/issue/14808
232
- z [3 ] = 0
233
- z [2 ] = 0
219
+ z [3 ], z [2 ] = 0 , 0
234
220
z [1 ] = uint64 (binary .BigEndian .Uint16 (in [1 :3 ])) | uint64 (in [0 ])<< 16
235
221
z [0 ] = binary .BigEndian .Uint64 (in [3 :11 ])
236
222
return z
237
223
}
238
224
239
225
func (z * Int ) SetBytes19 (in []byte ) * Int {
240
226
_ = in [18 ] // bounds check hint to compiler; see golang.org/issue/14808
241
-
242
227
z [3 ] = 0
243
228
z [2 ] = uint64 (binary .BigEndian .Uint16 (in [1 :3 ])) | uint64 (in [0 ])<< 16
244
229
z [1 ] = binary .BigEndian .Uint64 (in [3 :11 ])
@@ -248,7 +233,6 @@ func (z *Int) SetBytes19(in []byte) *Int {
248
233
249
234
func (z * Int ) SetBytes27 (in []byte ) * Int {
250
235
_ = in [26 ] // bounds check hint to compiler; see golang.org/issue/14808
251
-
252
236
z [3 ] = uint64 (binary .BigEndian .Uint16 (in [1 :3 ])) | uint64 (in [0 ])<< 16
253
237
z [2 ] = binary .BigEndian .Uint64 (in [3 :11 ])
254
238
z [1 ] = binary .BigEndian .Uint64 (in [11 :19 ])
@@ -258,27 +242,21 @@ func (z *Int) SetBytes27(in []byte) *Int {
258
242
259
243
func (z * Int ) SetBytes4 (in []byte ) * Int {
260
244
_ = in [3 ] // bounds check hint to compiler; see golang.org/issue/14808
261
-
262
- z [3 ] = 0
263
- z [2 ] = 0
264
- z [1 ] = 0
245
+ z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
265
246
z [0 ] = uint64 (binary .BigEndian .Uint32 (in [0 :4 ]))
266
247
return z
267
248
}
268
249
269
250
func (z * Int ) SetBytes12 (in []byte ) * Int {
270
251
_ = in [11 ] // bounds check hint to compiler; see golang.org/issue/14808
271
-
272
- z [3 ] = 0
273
- z [2 ] = 0
252
+ z [3 ], z [2 ] = 0 , 0
274
253
z [1 ] = uint64 (binary .BigEndian .Uint32 (in [0 :4 ]))
275
254
z [0 ] = binary .BigEndian .Uint64 (in [4 :12 ])
276
255
return z
277
256
}
278
257
279
258
func (z * Int ) SetBytes20 (in []byte ) * Int {
280
259
_ = in [19 ] // bounds check hint to compiler; see golang.org/issue/14808
281
-
282
260
z [3 ] = 0
283
261
z [2 ] = uint64 (binary .BigEndian .Uint32 (in [0 :4 ]))
284
262
z [1 ] = binary .BigEndian .Uint64 (in [4 :12 ])
@@ -288,7 +266,6 @@ func (z *Int) SetBytes20(in []byte) *Int {
288
266
289
267
func (z * Int ) SetBytes28 (in []byte ) * Int {
290
268
_ = in [27 ] // bounds check hint to compiler; see golang.org/issue/14808
291
-
292
269
z [3 ] = uint64 (binary .BigEndian .Uint32 (in [0 :4 ]))
293
270
z [2 ] = binary .BigEndian .Uint64 (in [4 :12 ])
294
271
z [1 ] = binary .BigEndian .Uint64 (in [12 :20 ])
@@ -298,27 +275,21 @@ func (z *Int) SetBytes28(in []byte) *Int {
298
275
299
276
func (z * Int ) SetBytes5 (in []byte ) * Int {
300
277
_ = in [4 ] // bounds check hint to compiler; see golang.org/issue/14808
301
-
302
- z [3 ] = 0
303
- z [2 ] = 0
304
- z [1 ] = 0
278
+ z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
305
279
z [0 ] = bigEndianUint40 (in [0 :5 ])
306
280
return z
307
281
}
308
282
309
283
func (z * Int ) SetBytes13 (in []byte ) * Int {
310
284
_ = in [12 ] // bounds check hint to compiler; see golang.org/issue/14808
311
-
312
- z [3 ] = 0
313
- z [2 ] = 0
285
+ z [3 ], z [2 ] = 0 , 0
314
286
z [1 ] = bigEndianUint40 (in [0 :5 ])
315
287
z [0 ] = binary .BigEndian .Uint64 (in [5 :13 ])
316
288
return z
317
289
}
318
290
319
291
func (z * Int ) SetBytes21 (in []byte ) * Int {
320
292
_ = in [20 ] // bounds check hint to compiler; see golang.org/issue/14808
321
-
322
293
z [3 ] = 0
323
294
z [2 ] = bigEndianUint40 (in [0 :5 ])
324
295
z [1 ] = binary .BigEndian .Uint64 (in [5 :13 ])
@@ -328,7 +299,6 @@ func (z *Int) SetBytes21(in []byte) *Int {
328
299
329
300
func (z * Int ) SetBytes29 (in []byte ) * Int {
330
301
_ = in [23 ] // bounds check hint to compiler; see golang.org/issue/14808
331
-
332
302
z [3 ] = bigEndianUint40 (in [0 :5 ])
333
303
z [2 ] = binary .BigEndian .Uint64 (in [5 :13 ])
334
304
z [1 ] = binary .BigEndian .Uint64 (in [13 :21 ])
@@ -338,27 +308,21 @@ func (z *Int) SetBytes29(in []byte) *Int {
338
308
339
309
func (z * Int ) SetBytes6 (in []byte ) * Int {
340
310
_ = in [5 ] // bounds check hint to compiler; see golang.org/issue/14808
341
-
342
- z [3 ] = 0
343
- z [2 ] = 0
344
- z [1 ] = 0
311
+ z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
345
312
z [0 ] = bigEndianUint48 (in [0 :6 ])
346
313
return z
347
314
}
348
315
349
316
func (z * Int ) SetBytes14 (in []byte ) * Int {
350
317
_ = in [13 ] // bounds check hint to compiler; see golang.org/issue/14808
351
-
352
- z [3 ] = 0
353
- z [2 ] = 0
318
+ z [3 ], z [2 ] = 0 , 0
354
319
z [1 ] = bigEndianUint48 (in [0 :6 ])
355
320
z [0 ] = binary .BigEndian .Uint64 (in [6 :14 ])
356
321
return z
357
322
}
358
323
359
324
func (z * Int ) SetBytes22 (in []byte ) * Int {
360
325
_ = in [21 ] // bounds check hint to compiler; see golang.org/issue/14808
361
-
362
326
z [3 ] = 0
363
327
z [2 ] = bigEndianUint48 (in [0 :6 ])
364
328
z [1 ] = binary .BigEndian .Uint64 (in [6 :14 ])
@@ -368,7 +332,6 @@ func (z *Int) SetBytes22(in []byte) *Int {
368
332
369
333
func (z * Int ) SetBytes30 (in []byte ) * Int {
370
334
_ = in [29 ] // bounds check hint to compiler; see golang.org/issue/14808
371
-
372
335
z [3 ] = bigEndianUint48 (in [0 :6 ])
373
336
z [2 ] = binary .BigEndian .Uint64 (in [6 :14 ])
374
337
z [1 ] = binary .BigEndian .Uint64 (in [14 :22 ])
@@ -378,27 +341,21 @@ func (z *Int) SetBytes30(in []byte) *Int {
378
341
379
342
func (z * Int ) SetBytes7 (in []byte ) * Int {
380
343
_ = in [6 ] // bounds check hint to compiler; see golang.org/issue/14808
381
-
382
- z [3 ] = 0
383
- z [2 ] = 0
384
- z [1 ] = 0
344
+ z [3 ], z [2 ], z [1 ] = 0 , 0 , 0
385
345
z [0 ] = bigEndianUint56 (in [0 :7 ])
386
346
return z
387
347
}
388
348
389
349
func (z * Int ) SetBytes15 (in []byte ) * Int {
390
350
_ = in [14 ] // bounds check hint to compiler; see golang.org/issue/14808
391
-
392
- z [3 ] = 0
393
- z [2 ] = 0
351
+ z [3 ], z [2 ] = 0 , 0
394
352
z [1 ] = bigEndianUint56 (in [0 :7 ])
395
353
z [0 ] = binary .BigEndian .Uint64 (in [7 :15 ])
396
354
return z
397
355
}
398
356
399
357
func (z * Int ) SetBytes23 (in []byte ) * Int {
400
358
_ = in [22 ] // bounds check hint to compiler; see golang.org/issue/14808
401
-
402
359
z [3 ] = 0
403
360
z [2 ] = bigEndianUint56 (in [0 :7 ])
404
361
z [1 ] = binary .BigEndian .Uint64 (in [7 :15 ])
@@ -408,7 +365,6 @@ func (z *Int) SetBytes23(in []byte) *Int {
408
365
409
366
func (z * Int ) SetBytes31 (in []byte ) * Int {
410
367
_ = in [30 ] // bounds check hint to compiler; see golang.org/issue/14808
411
-
412
368
z [3 ] = bigEndianUint56 (in [0 :7 ])
413
369
z [2 ] = binary .BigEndian .Uint64 (in [7 :15 ])
414
370
z [1 ] = binary .BigEndian .Uint64 (in [15 :23 ])
0 commit comments