This repository has been archived by the owner on May 9, 2024. It is now read-only.
/
generated.go
1063 lines (891 loc) · 22.9 KB
/
generated.go
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package interp
import "go/types"
func easyConvToIntFromInt(v Ivalue) Ivalue {
return int(v.(int))
}
func easyConvToInt8FromInt(v Ivalue) Ivalue {
return int8(v.(int))
}
func easyConvToInt16FromInt(v Ivalue) Ivalue {
return int16(v.(int))
}
func easyConvToInt32FromInt(v Ivalue) Ivalue {
return int32(v.(int))
}
func easyConvToInt64FromInt(v Ivalue) Ivalue {
return int64(v.(int))
}
func easyConvToUintFromInt(v Ivalue) Ivalue {
return uint(v.(int))
}
func easyConvToUint8FromInt(v Ivalue) Ivalue {
return uint8(v.(int))
}
func easyConvToUint16FromInt(v Ivalue) Ivalue {
return uint16(v.(int))
}
func easyConvToUint32FromInt(v Ivalue) Ivalue {
return uint32(v.(int))
}
func easyConvToUint64FromInt(v Ivalue) Ivalue {
return uint64(v.(int))
}
func easyConvToUintptrFromInt(v Ivalue) Ivalue {
return uintptr(v.(int))
}
func easyConvToFloat32FromInt(v Ivalue) Ivalue {
return float32(v.(int))
}
func easyConvToFloat64FromInt(v Ivalue) Ivalue {
return float64(v.(int))
}
func easyConvToIntFromInt8(v Ivalue) Ivalue {
return int(v.(int8))
}
func easyConvToInt8FromInt8(v Ivalue) Ivalue {
return int8(v.(int8))
}
func easyConvToInt16FromInt8(v Ivalue) Ivalue {
return int16(v.(int8))
}
func easyConvToInt32FromInt8(v Ivalue) Ivalue {
return int32(v.(int8))
}
func easyConvToInt64FromInt8(v Ivalue) Ivalue {
return int64(v.(int8))
}
func easyConvToUintFromInt8(v Ivalue) Ivalue {
return uint(v.(int8))
}
func easyConvToUint8FromInt8(v Ivalue) Ivalue {
return uint8(v.(int8))
}
func easyConvToUint16FromInt8(v Ivalue) Ivalue {
return uint16(v.(int8))
}
func easyConvToUint32FromInt8(v Ivalue) Ivalue {
return uint32(v.(int8))
}
func easyConvToUint64FromInt8(v Ivalue) Ivalue {
return uint64(v.(int8))
}
func easyConvToUintptrFromInt8(v Ivalue) Ivalue {
return uintptr(v.(int8))
}
func easyConvToFloat32FromInt8(v Ivalue) Ivalue {
return float32(v.(int8))
}
func easyConvToFloat64FromInt8(v Ivalue) Ivalue {
return float64(v.(int8))
}
func easyConvToIntFromInt16(v Ivalue) Ivalue {
return int(v.(int16))
}
func easyConvToInt8FromInt16(v Ivalue) Ivalue {
return int8(v.(int16))
}
func easyConvToInt16FromInt16(v Ivalue) Ivalue {
return int16(v.(int16))
}
func easyConvToInt32FromInt16(v Ivalue) Ivalue {
return int32(v.(int16))
}
func easyConvToInt64FromInt16(v Ivalue) Ivalue {
return int64(v.(int16))
}
func easyConvToUintFromInt16(v Ivalue) Ivalue {
return uint(v.(int16))
}
func easyConvToUint8FromInt16(v Ivalue) Ivalue {
return uint8(v.(int16))
}
func easyConvToUint16FromInt16(v Ivalue) Ivalue {
return uint16(v.(int16))
}
func easyConvToUint32FromInt16(v Ivalue) Ivalue {
return uint32(v.(int16))
}
func easyConvToUint64FromInt16(v Ivalue) Ivalue {
return uint64(v.(int16))
}
func easyConvToUintptrFromInt16(v Ivalue) Ivalue {
return uintptr(v.(int16))
}
func easyConvToFloat32FromInt16(v Ivalue) Ivalue {
return float32(v.(int16))
}
func easyConvToFloat64FromInt16(v Ivalue) Ivalue {
return float64(v.(int16))
}
func easyConvToIntFromInt32(v Ivalue) Ivalue {
return int(v.(int32))
}
func easyConvToInt8FromInt32(v Ivalue) Ivalue {
return int8(v.(int32))
}
func easyConvToInt16FromInt32(v Ivalue) Ivalue {
return int16(v.(int32))
}
func easyConvToInt32FromInt32(v Ivalue) Ivalue {
return int32(v.(int32))
}
func easyConvToInt64FromInt32(v Ivalue) Ivalue {
return int64(v.(int32))
}
func easyConvToUintFromInt32(v Ivalue) Ivalue {
return uint(v.(int32))
}
func easyConvToUint8FromInt32(v Ivalue) Ivalue {
return uint8(v.(int32))
}
func easyConvToUint16FromInt32(v Ivalue) Ivalue {
return uint16(v.(int32))
}
func easyConvToUint32FromInt32(v Ivalue) Ivalue {
return uint32(v.(int32))
}
func easyConvToUint64FromInt32(v Ivalue) Ivalue {
return uint64(v.(int32))
}
func easyConvToUintptrFromInt32(v Ivalue) Ivalue {
return uintptr(v.(int32))
}
func easyConvToFloat32FromInt32(v Ivalue) Ivalue {
return float32(v.(int32))
}
func easyConvToFloat64FromInt32(v Ivalue) Ivalue {
return float64(v.(int32))
}
func easyConvToIntFromInt64(v Ivalue) Ivalue {
return int(v.(int64))
}
func easyConvToInt8FromInt64(v Ivalue) Ivalue {
return int8(v.(int64))
}
func easyConvToInt16FromInt64(v Ivalue) Ivalue {
return int16(v.(int64))
}
func easyConvToInt32FromInt64(v Ivalue) Ivalue {
return int32(v.(int64))
}
func easyConvToInt64FromInt64(v Ivalue) Ivalue {
return int64(v.(int64))
}
func easyConvToUintFromInt64(v Ivalue) Ivalue {
return uint(v.(int64))
}
func easyConvToUint8FromInt64(v Ivalue) Ivalue {
return uint8(v.(int64))
}
func easyConvToUint16FromInt64(v Ivalue) Ivalue {
return uint16(v.(int64))
}
func easyConvToUint32FromInt64(v Ivalue) Ivalue {
return uint32(v.(int64))
}
func easyConvToUint64FromInt64(v Ivalue) Ivalue {
return uint64(v.(int64))
}
func easyConvToUintptrFromInt64(v Ivalue) Ivalue {
return uintptr(v.(int64))
}
func easyConvToFloat32FromInt64(v Ivalue) Ivalue {
return float32(v.(int64))
}
func easyConvToFloat64FromInt64(v Ivalue) Ivalue {
return float64(v.(int64))
}
func easyConvToIntFromUint(v Ivalue) Ivalue {
return int(v.(uint))
}
func easyConvToInt8FromUint(v Ivalue) Ivalue {
return int8(v.(uint))
}
func easyConvToInt16FromUint(v Ivalue) Ivalue {
return int16(v.(uint))
}
func easyConvToInt32FromUint(v Ivalue) Ivalue {
return int32(v.(uint))
}
func easyConvToInt64FromUint(v Ivalue) Ivalue {
return int64(v.(uint))
}
func easyConvToUintFromUint(v Ivalue) Ivalue {
return uint(v.(uint))
}
func easyConvToUint8FromUint(v Ivalue) Ivalue {
return uint8(v.(uint))
}
func easyConvToUint16FromUint(v Ivalue) Ivalue {
return uint16(v.(uint))
}
func easyConvToUint32FromUint(v Ivalue) Ivalue {
return uint32(v.(uint))
}
func easyConvToUint64FromUint(v Ivalue) Ivalue {
return uint64(v.(uint))
}
func easyConvToUintptrFromUint(v Ivalue) Ivalue {
return uintptr(v.(uint))
}
func easyConvToFloat32FromUint(v Ivalue) Ivalue {
return float32(v.(uint))
}
func easyConvToFloat64FromUint(v Ivalue) Ivalue {
return float64(v.(uint))
}
func easyConvToIntFromUint8(v Ivalue) Ivalue {
return int(v.(uint8))
}
func easyConvToInt8FromUint8(v Ivalue) Ivalue {
return int8(v.(uint8))
}
func easyConvToInt16FromUint8(v Ivalue) Ivalue {
return int16(v.(uint8))
}
func easyConvToInt32FromUint8(v Ivalue) Ivalue {
return int32(v.(uint8))
}
func easyConvToInt64FromUint8(v Ivalue) Ivalue {
return int64(v.(uint8))
}
func easyConvToUintFromUint8(v Ivalue) Ivalue {
return uint(v.(uint8))
}
func easyConvToUint8FromUint8(v Ivalue) Ivalue {
return uint8(v.(uint8))
}
func easyConvToUint16FromUint8(v Ivalue) Ivalue {
return uint16(v.(uint8))
}
func easyConvToUint32FromUint8(v Ivalue) Ivalue {
return uint32(v.(uint8))
}
func easyConvToUint64FromUint8(v Ivalue) Ivalue {
return uint64(v.(uint8))
}
func easyConvToUintptrFromUint8(v Ivalue) Ivalue {
return uintptr(v.(uint8))
}
func easyConvToFloat32FromUint8(v Ivalue) Ivalue {
return float32(v.(uint8))
}
func easyConvToFloat64FromUint8(v Ivalue) Ivalue {
return float64(v.(uint8))
}
func easyConvToIntFromUint16(v Ivalue) Ivalue {
return int(v.(uint16))
}
func easyConvToInt8FromUint16(v Ivalue) Ivalue {
return int8(v.(uint16))
}
func easyConvToInt16FromUint16(v Ivalue) Ivalue {
return int16(v.(uint16))
}
func easyConvToInt32FromUint16(v Ivalue) Ivalue {
return int32(v.(uint16))
}
func easyConvToInt64FromUint16(v Ivalue) Ivalue {
return int64(v.(uint16))
}
func easyConvToUintFromUint16(v Ivalue) Ivalue {
return uint(v.(uint16))
}
func easyConvToUint8FromUint16(v Ivalue) Ivalue {
return uint8(v.(uint16))
}
func easyConvToUint16FromUint16(v Ivalue) Ivalue {
return uint16(v.(uint16))
}
func easyConvToUint32FromUint16(v Ivalue) Ivalue {
return uint32(v.(uint16))
}
func easyConvToUint64FromUint16(v Ivalue) Ivalue {
return uint64(v.(uint16))
}
func easyConvToUintptrFromUint16(v Ivalue) Ivalue {
return uintptr(v.(uint16))
}
func easyConvToFloat32FromUint16(v Ivalue) Ivalue {
return float32(v.(uint16))
}
func easyConvToFloat64FromUint16(v Ivalue) Ivalue {
return float64(v.(uint16))
}
func easyConvToIntFromUint32(v Ivalue) Ivalue {
return int(v.(uint32))
}
func easyConvToInt8FromUint32(v Ivalue) Ivalue {
return int8(v.(uint32))
}
func easyConvToInt16FromUint32(v Ivalue) Ivalue {
return int16(v.(uint32))
}
func easyConvToInt32FromUint32(v Ivalue) Ivalue {
return int32(v.(uint32))
}
func easyConvToInt64FromUint32(v Ivalue) Ivalue {
return int64(v.(uint32))
}
func easyConvToUintFromUint32(v Ivalue) Ivalue {
return uint(v.(uint32))
}
func easyConvToUint8FromUint32(v Ivalue) Ivalue {
return uint8(v.(uint32))
}
func easyConvToUint16FromUint32(v Ivalue) Ivalue {
return uint16(v.(uint32))
}
func easyConvToUint32FromUint32(v Ivalue) Ivalue {
return uint32(v.(uint32))
}
func easyConvToUint64FromUint32(v Ivalue) Ivalue {
return uint64(v.(uint32))
}
func easyConvToUintptrFromUint32(v Ivalue) Ivalue {
return uintptr(v.(uint32))
}
func easyConvToFloat32FromUint32(v Ivalue) Ivalue {
return float32(v.(uint32))
}
func easyConvToFloat64FromUint32(v Ivalue) Ivalue {
return float64(v.(uint32))
}
func easyConvToIntFromUint64(v Ivalue) Ivalue {
return int(v.(uint64))
}
func easyConvToInt8FromUint64(v Ivalue) Ivalue {
return int8(v.(uint64))
}
func easyConvToInt16FromUint64(v Ivalue) Ivalue {
return int16(v.(uint64))
}
func easyConvToInt32FromUint64(v Ivalue) Ivalue {
return int32(v.(uint64))
}
func easyConvToInt64FromUint64(v Ivalue) Ivalue {
return int64(v.(uint64))
}
func easyConvToUintFromUint64(v Ivalue) Ivalue {
return uint(v.(uint64))
}
func easyConvToUint8FromUint64(v Ivalue) Ivalue {
return uint8(v.(uint64))
}
func easyConvToUint16FromUint64(v Ivalue) Ivalue {
return uint16(v.(uint64))
}
func easyConvToUint32FromUint64(v Ivalue) Ivalue {
return uint32(v.(uint64))
}
func easyConvToUint64FromUint64(v Ivalue) Ivalue {
return uint64(v.(uint64))
}
func easyConvToUintptrFromUint64(v Ivalue) Ivalue {
return uintptr(v.(uint64))
}
func easyConvToFloat32FromUint64(v Ivalue) Ivalue {
return float32(v.(uint64))
}
func easyConvToFloat64FromUint64(v Ivalue) Ivalue {
return float64(v.(uint64))
}
func easyConvToIntFromUintptr(v Ivalue) Ivalue {
return int(v.(uintptr))
}
func easyConvToInt8FromUintptr(v Ivalue) Ivalue {
return int8(v.(uintptr))
}
func easyConvToInt16FromUintptr(v Ivalue) Ivalue {
return int16(v.(uintptr))
}
func easyConvToInt32FromUintptr(v Ivalue) Ivalue {
return int32(v.(uintptr))
}
func easyConvToInt64FromUintptr(v Ivalue) Ivalue {
return int64(v.(uintptr))
}
func easyConvToUintFromUintptr(v Ivalue) Ivalue {
return uint(v.(uintptr))
}
func easyConvToUint8FromUintptr(v Ivalue) Ivalue {
return uint8(v.(uintptr))
}
func easyConvToUint16FromUintptr(v Ivalue) Ivalue {
return uint16(v.(uintptr))
}
func easyConvToUint32FromUintptr(v Ivalue) Ivalue {
return uint32(v.(uintptr))
}
func easyConvToUint64FromUintptr(v Ivalue) Ivalue {
return uint64(v.(uintptr))
}
func easyConvToUintptrFromUintptr(v Ivalue) Ivalue {
return uintptr(v.(uintptr))
}
func easyConvToFloat32FromUintptr(v Ivalue) Ivalue {
return float32(v.(uintptr))
}
func easyConvToFloat64FromUintptr(v Ivalue) Ivalue {
return float64(v.(uintptr))
}
func easyConvToIntFromFloat32(v Ivalue) Ivalue {
return int(v.(float32))
}
func easyConvToInt8FromFloat32(v Ivalue) Ivalue {
return int8(v.(float32))
}
func easyConvToInt16FromFloat32(v Ivalue) Ivalue {
return int16(v.(float32))
}
func easyConvToInt32FromFloat32(v Ivalue) Ivalue {
return int32(v.(float32))
}
func easyConvToInt64FromFloat32(v Ivalue) Ivalue {
return int64(v.(float32))
}
func easyConvToUintFromFloat32(v Ivalue) Ivalue {
return uint(v.(float32))
}
func easyConvToUint8FromFloat32(v Ivalue) Ivalue {
return uint8(v.(float32))
}
func easyConvToUint16FromFloat32(v Ivalue) Ivalue {
return uint16(v.(float32))
}
func easyConvToUint32FromFloat32(v Ivalue) Ivalue {
return uint32(v.(float32))
}
func easyConvToUint64FromFloat32(v Ivalue) Ivalue {
return uint64(v.(float32))
}
func easyConvToUintptrFromFloat32(v Ivalue) Ivalue {
return uintptr(v.(float32))
}
func easyConvToFloat32FromFloat32(v Ivalue) Ivalue {
return float32(v.(float32))
}
func easyConvToFloat64FromFloat32(v Ivalue) Ivalue {
return float64(v.(float32))
}
func easyConvToIntFromFloat64(v Ivalue) Ivalue {
return int(v.(float64))
}
func easyConvToInt8FromFloat64(v Ivalue) Ivalue {
return int8(v.(float64))
}
func easyConvToInt16FromFloat64(v Ivalue) Ivalue {
return int16(v.(float64))
}
func easyConvToInt32FromFloat64(v Ivalue) Ivalue {
return int32(v.(float64))
}
func easyConvToInt64FromFloat64(v Ivalue) Ivalue {
return int64(v.(float64))
}
func easyConvToUintFromFloat64(v Ivalue) Ivalue {
return uint(v.(float64))
}
func easyConvToUint8FromFloat64(v Ivalue) Ivalue {
return uint8(v.(float64))
}
func easyConvToUint16FromFloat64(v Ivalue) Ivalue {
return uint16(v.(float64))
}
func easyConvToUint32FromFloat64(v Ivalue) Ivalue {
return uint32(v.(float64))
}
func easyConvToUint64FromFloat64(v Ivalue) Ivalue {
return uint64(v.(float64))
}
func easyConvToUintptrFromFloat64(v Ivalue) Ivalue {
return uintptr(v.(float64))
}
func easyConvToFloat32FromFloat64(v Ivalue) Ivalue {
return float32(v.(float64))
}
func easyConvToFloat64FromFloat64(v Ivalue) Ivalue {
return float64(v.(float64))
}
func easyConvFunc(desT, srcT types.BasicKind) func(Ivalue) Ivalue {
switch srcT {
case types.Int:
switch desT {
case types.Int:
return easyConvToIntFromInt
case types.Int8:
return easyConvToInt8FromInt
case types.Int16:
return easyConvToInt16FromInt
case types.Int32:
return easyConvToInt32FromInt
case types.Int64:
return easyConvToInt64FromInt
case types.Uint:
return easyConvToUintFromInt
case types.Uint8:
return easyConvToUint8FromInt
case types.Uint16:
return easyConvToUint16FromInt
case types.Uint32:
return easyConvToUint32FromInt
case types.Uint64:
return easyConvToUint64FromInt
case types.Uintptr:
return easyConvToUintptrFromInt
case types.Float32:
return easyConvToFloat32FromInt
case types.Float64:
return easyConvToFloat64FromInt
}
case types.Int8:
switch desT {
case types.Int:
return easyConvToIntFromInt8
case types.Int8:
return easyConvToInt8FromInt8
case types.Int16:
return easyConvToInt16FromInt8
case types.Int32:
return easyConvToInt32FromInt8
case types.Int64:
return easyConvToInt64FromInt8
case types.Uint:
return easyConvToUintFromInt8
case types.Uint8:
return easyConvToUint8FromInt8
case types.Uint16:
return easyConvToUint16FromInt8
case types.Uint32:
return easyConvToUint32FromInt8
case types.Uint64:
return easyConvToUint64FromInt8
case types.Uintptr:
return easyConvToUintptrFromInt8
case types.Float32:
return easyConvToFloat32FromInt8
case types.Float64:
return easyConvToFloat64FromInt8
}
case types.Int16:
switch desT {
case types.Int:
return easyConvToIntFromInt16
case types.Int8:
return easyConvToInt8FromInt16
case types.Int16:
return easyConvToInt16FromInt16
case types.Int32:
return easyConvToInt32FromInt16
case types.Int64:
return easyConvToInt64FromInt16
case types.Uint:
return easyConvToUintFromInt16
case types.Uint8:
return easyConvToUint8FromInt16
case types.Uint16:
return easyConvToUint16FromInt16
case types.Uint32:
return easyConvToUint32FromInt16
case types.Uint64:
return easyConvToUint64FromInt16
case types.Uintptr:
return easyConvToUintptrFromInt16
case types.Float32:
return easyConvToFloat32FromInt16
case types.Float64:
return easyConvToFloat64FromInt16
}
case types.Int32:
switch desT {
case types.Int:
return easyConvToIntFromInt32
case types.Int8:
return easyConvToInt8FromInt32
case types.Int16:
return easyConvToInt16FromInt32
case types.Int32:
return easyConvToInt32FromInt32
case types.Int64:
return easyConvToInt64FromInt32
case types.Uint:
return easyConvToUintFromInt32
case types.Uint8:
return easyConvToUint8FromInt32
case types.Uint16:
return easyConvToUint16FromInt32
case types.Uint32:
return easyConvToUint32FromInt32
case types.Uint64:
return easyConvToUint64FromInt32
case types.Uintptr:
return easyConvToUintptrFromInt32
case types.Float32:
return easyConvToFloat32FromInt32
case types.Float64:
return easyConvToFloat64FromInt32
}
case types.Int64:
switch desT {
case types.Int:
return easyConvToIntFromInt64
case types.Int8:
return easyConvToInt8FromInt64
case types.Int16:
return easyConvToInt16FromInt64
case types.Int32:
return easyConvToInt32FromInt64
case types.Int64:
return easyConvToInt64FromInt64
case types.Uint:
return easyConvToUintFromInt64
case types.Uint8:
return easyConvToUint8FromInt64
case types.Uint16:
return easyConvToUint16FromInt64
case types.Uint32:
return easyConvToUint32FromInt64
case types.Uint64:
return easyConvToUint64FromInt64
case types.Uintptr:
return easyConvToUintptrFromInt64
case types.Float32:
return easyConvToFloat32FromInt64
case types.Float64:
return easyConvToFloat64FromInt64
}
case types.Uint:
switch desT {
case types.Int:
return easyConvToIntFromUint
case types.Int8:
return easyConvToInt8FromUint
case types.Int16:
return easyConvToInt16FromUint
case types.Int32:
return easyConvToInt32FromUint
case types.Int64:
return easyConvToInt64FromUint
case types.Uint:
return easyConvToUintFromUint
case types.Uint8:
return easyConvToUint8FromUint
case types.Uint16:
return easyConvToUint16FromUint
case types.Uint32:
return easyConvToUint32FromUint
case types.Uint64:
return easyConvToUint64FromUint
case types.Uintptr:
return easyConvToUintptrFromUint
case types.Float32:
return easyConvToFloat32FromUint
case types.Float64:
return easyConvToFloat64FromUint
}
case types.Uint8:
switch desT {
case types.Int:
return easyConvToIntFromUint8
case types.Int8:
return easyConvToInt8FromUint8
case types.Int16:
return easyConvToInt16FromUint8
case types.Int32:
return easyConvToInt32FromUint8
case types.Int64:
return easyConvToInt64FromUint8
case types.Uint:
return easyConvToUintFromUint8
case types.Uint8:
return easyConvToUint8FromUint8
case types.Uint16:
return easyConvToUint16FromUint8
case types.Uint32:
return easyConvToUint32FromUint8
case types.Uint64:
return easyConvToUint64FromUint8
case types.Uintptr:
return easyConvToUintptrFromUint8
case types.Float32:
return easyConvToFloat32FromUint8
case types.Float64:
return easyConvToFloat64FromUint8
}
case types.Uint16:
switch desT {
case types.Int:
return easyConvToIntFromUint16
case types.Int8:
return easyConvToInt8FromUint16
case types.Int16:
return easyConvToInt16FromUint16
case types.Int32:
return easyConvToInt32FromUint16
case types.Int64:
return easyConvToInt64FromUint16
case types.Uint:
return easyConvToUintFromUint16
case types.Uint8:
return easyConvToUint8FromUint16
case types.Uint16:
return easyConvToUint16FromUint16
case types.Uint32:
return easyConvToUint32FromUint16
case types.Uint64:
return easyConvToUint64FromUint16
case types.Uintptr:
return easyConvToUintptrFromUint16
case types.Float32:
return easyConvToFloat32FromUint16
case types.Float64:
return easyConvToFloat64FromUint16
}
case types.Uint32:
switch desT {
case types.Int:
return easyConvToIntFromUint32
case types.Int8:
return easyConvToInt8FromUint32
case types.Int16:
return easyConvToInt16FromUint32
case types.Int32:
return easyConvToInt32FromUint32
case types.Int64:
return easyConvToInt64FromUint32
case types.Uint:
return easyConvToUintFromUint32
case types.Uint8:
return easyConvToUint8FromUint32
case types.Uint16:
return easyConvToUint16FromUint32
case types.Uint32:
return easyConvToUint32FromUint32
case types.Uint64:
return easyConvToUint64FromUint32
case types.Uintptr:
return easyConvToUintptrFromUint32
case types.Float32:
return easyConvToFloat32FromUint32
case types.Float64:
return easyConvToFloat64FromUint32
}
case types.Uint64:
switch desT {
case types.Int:
return easyConvToIntFromUint64
case types.Int8:
return easyConvToInt8FromUint64
case types.Int16:
return easyConvToInt16FromUint64
case types.Int32:
return easyConvToInt32FromUint64
case types.Int64:
return easyConvToInt64FromUint64
case types.Uint:
return easyConvToUintFromUint64
case types.Uint8:
return easyConvToUint8FromUint64
case types.Uint16:
return easyConvToUint16FromUint64
case types.Uint32:
return easyConvToUint32FromUint64
case types.Uint64:
return easyConvToUint64FromUint64
case types.Uintptr:
return easyConvToUintptrFromUint64
case types.Float32:
return easyConvToFloat32FromUint64
case types.Float64:
return easyConvToFloat64FromUint64
}
case types.Uintptr:
switch desT {
case types.Int:
return easyConvToIntFromUintptr
case types.Int8:
return easyConvToInt8FromUintptr
case types.Int16:
return easyConvToInt16FromUintptr
case types.Int32:
return easyConvToInt32FromUintptr
case types.Int64:
return easyConvToInt64FromUintptr
case types.Uint:
return easyConvToUintFromUintptr
case types.Uint8:
return easyConvToUint8FromUintptr
case types.Uint16:
return easyConvToUint16FromUintptr
case types.Uint32:
return easyConvToUint32FromUintptr
case types.Uint64:
return easyConvToUint64FromUintptr
case types.Uintptr:
return easyConvToUintptrFromUintptr
case types.Float32:
return easyConvToFloat32FromUintptr
case types.Float64:
return easyConvToFloat64FromUintptr