@@ -215,7 +215,7 @@ abstract static class AddNode extends PythonBinaryBuiltinNode {
215
215
216
216
@ SuppressWarnings ("unused" )
217
217
@ Fallback
218
- Object doGeneric (Object left , Object right ) {
218
+ PNotImplemented doGeneric (Object left , Object right ) {
219
219
return PNotImplemented .NOT_IMPLEMENTED ;
220
220
}
221
221
}
@@ -246,7 +246,7 @@ abstract static class SubNode extends PythonBinaryBuiltinNode {
246
246
247
247
@ SuppressWarnings ("unused" )
248
248
@ Fallback
249
- Object doGeneric (Object left , Object right ) {
249
+ PNotImplemented doGeneric (Object left , Object right ) {
250
250
return PNotImplemented .NOT_IMPLEMENTED ;
251
251
}
252
252
}
@@ -272,7 +272,7 @@ abstract static class RSubNode extends PythonBinaryBuiltinNode {
272
272
273
273
@ SuppressWarnings ("unused" )
274
274
@ Fallback
275
- Object doGeneric (Object left , Object right ) {
275
+ PNotImplemented doGeneric (Object left , Object right ) {
276
276
return PNotImplemented .NOT_IMPLEMENTED ;
277
277
}
278
278
}
@@ -313,7 +313,7 @@ Object doDP(PythonNativeObject left, double right,
313
313
314
314
@ SuppressWarnings ("unused" )
315
315
@ Fallback
316
- Object doGeneric (Object left , Object right ) {
316
+ PNotImplemented doGeneric (Object left , Object right ) {
317
317
return PNotImplemented .NOT_IMPLEMENTED ;
318
318
}
319
319
}
@@ -342,54 +342,54 @@ abstract static class PowerNode extends PythonTernaryBuiltinNode {
342
342
return Math .pow (left , right );
343
343
}
344
344
345
- @ Specialization ( guards = "!isNone(mod)" )
345
+ @ Specialization
346
346
double doDL (double left , long right , long mod ) {
347
347
return Math .pow (left , right ) % mod ;
348
348
}
349
349
350
- @ Specialization ( guards = "!isNone(mod)" )
350
+ @ Specialization
351
351
double doDPi (double left , PInt right , long mod ) {
352
352
return Math .pow (left , right .doubleValue ()) % mod ;
353
353
}
354
354
355
- @ Specialization ( guards = "!isNone(mod)" )
355
+ @ Specialization
356
356
double doDD (double left , double right , long mod ) {
357
357
return Math .pow (left , right ) % mod ;
358
358
}
359
359
360
- @ Specialization ( guards = "!isNone(mod)" )
360
+ @ Specialization
361
361
double doDL (double left , long right , PInt mod ) {
362
362
return Math .pow (left , right ) % mod .doubleValue ();
363
363
}
364
364
365
- @ Specialization ( guards = "!isNone(mod)" )
365
+ @ Specialization
366
366
double doDPi (double left , PInt right , PInt mod ) {
367
367
return Math .pow (left , right .doubleValue ()) % mod .doubleValue ();
368
368
}
369
369
370
- @ Specialization ( guards = "!isNone(mod)" )
370
+ @ Specialization
371
371
double doDD (double left , double right , PInt mod ) {
372
372
return Math .pow (left , right ) % mod .doubleValue ();
373
373
}
374
374
375
- @ Specialization ( guards = "!isNone(mod)" )
375
+ @ Specialization
376
376
double doDL (double left , long right , double mod ) {
377
377
return Math .pow (left , right ) % mod ;
378
378
}
379
379
380
- @ Specialization ( guards = "!isNone(mod)" )
380
+ @ Specialization
381
381
double doDPi (double left , PInt right , double mod ) {
382
382
return Math .pow (left , right .doubleValue ()) % mod ;
383
383
}
384
384
385
- @ Specialization ( guards = "!isNone(mod)" )
385
+ @ Specialization
386
386
double doDD (double left , double right , double mod ) {
387
387
return Math .pow (left , right ) % mod ;
388
388
}
389
389
390
390
@ SuppressWarnings ("unused" )
391
391
@ Fallback
392
- Object doGeneric (Object left , Object right , Object none ) {
392
+ PNotImplemented doGeneric (Object left , Object right , Object none ) {
393
393
return PNotImplemented .NOT_IMPLEMENTED ;
394
394
}
395
395
}
@@ -418,7 +418,7 @@ abstract static class FloorDivNode extends FloatBinaryBuiltinNode {
418
418
419
419
@ SuppressWarnings ("unused" )
420
420
@ Fallback
421
- Object doGeneric (Object left , Object right ) {
421
+ PNotImplemented doGeneric (Object left , Object right ) {
422
422
return PNotImplemented .NOT_IMPLEMENTED ;
423
423
}
424
424
}
@@ -490,9 +490,7 @@ public double fromhexFloat(PythonClass cl, String arg) {
490
490
public Object fromhexO (PythonClass cl , String arg ,
491
491
@ Cached ("create(__CALL__)" ) LookupAndCallVarargsNode constr ) {
492
492
double value = fromHex (arg );
493
- Object result = constr .execute (cl , new Object []{cl , value });
494
-
495
- return result ;
493
+ return constr .execute (cl , new Object []{cl , value });
496
494
}
497
495
498
496
@ Fallback
@@ -576,7 +574,7 @@ abstract static class RFloorDivNode extends FloatBinaryBuiltinNode {
576
574
577
575
@ SuppressWarnings ("unused" )
578
576
@ Fallback
579
- Object doGeneric (Object right , Object left ) {
577
+ PNotImplemented doGeneric (Object right , Object left ) {
580
578
return PNotImplemented .NOT_IMPLEMENTED ;
581
579
}
582
580
}
@@ -605,7 +603,7 @@ abstract static class ModNode extends FloatBinaryBuiltinNode {
605
603
606
604
@ SuppressWarnings ("unused" )
607
605
@ Fallback
608
- Object doGeneric (Object right , Object left ) {
606
+ PNotImplemented doGeneric (Object right , Object left ) {
609
607
return PNotImplemented .NOT_IMPLEMENTED ;
610
608
}
611
609
}
@@ -634,7 +632,7 @@ abstract static class RModNode extends FloatBinaryBuiltinNode {
634
632
635
633
@ SuppressWarnings ("unused" )
636
634
@ Fallback
637
- Object doGeneric (Object right , Object left ) {
635
+ PNotImplemented doGeneric (Object right , Object left ) {
638
636
return PNotImplemented .NOT_IMPLEMENTED ;
639
637
}
640
638
}
@@ -660,7 +658,7 @@ abstract static class DivNode extends FloatBinaryBuiltinNode {
660
658
661
659
@ SuppressWarnings ("unused" )
662
660
@ Fallback
663
- Object doGeneric (Object left , Object right ) {
661
+ PNotImplemented doGeneric (Object left , Object right ) {
664
662
return PNotImplemented .NOT_IMPLEMENTED ;
665
663
}
666
664
}
@@ -686,7 +684,7 @@ abstract static class RDivNode extends PythonBinaryBuiltinNode {
686
684
687
685
@ SuppressWarnings ("unused" )
688
686
@ Fallback
689
- Object doGeneric (Object right , Object left ) {
687
+ PNotImplemented doGeneric (Object right , Object left ) {
690
688
return PNotImplemented .NOT_IMPLEMENTED ;
691
689
}
692
690
}
@@ -769,7 +767,7 @@ boolean eqDbPI(double a, PInt b) {
769
767
770
768
@ Fallback
771
769
@ SuppressWarnings ("unused" )
772
- Object eq (Object a , Object b ) {
770
+ PNotImplemented eq (Object a , Object b ) {
773
771
return PNotImplemented .NOT_IMPLEMENTED ;
774
772
}
775
773
}
@@ -795,7 +793,7 @@ boolean eqDbPI(double a, PInt b) {
795
793
796
794
@ Fallback
797
795
@ SuppressWarnings ("unused" )
798
- Object eq (Object a , Object b ) {
796
+ PNotImplemented eq (Object a , Object b ) {
799
797
return PNotImplemented .NOT_IMPLEMENTED ;
800
798
}
801
799
}
@@ -816,7 +814,7 @@ boolean doDL(double x, long y) {
816
814
817
815
@ Fallback
818
816
@ SuppressWarnings ("unused" )
819
- Object doGeneric (Object a , Object b ) {
817
+ PNotImplemented doGeneric (Object a , Object b ) {
820
818
return PNotImplemented .NOT_IMPLEMENTED ;
821
819
}
822
820
}
@@ -837,7 +835,7 @@ boolean doDL(double x, long y) {
837
835
838
836
@ Fallback
839
837
@ SuppressWarnings ("unused" )
840
- Object doGeneric (Object a , Object b ) {
838
+ PNotImplemented doGeneric (Object a , Object b ) {
841
839
return PNotImplemented .NOT_IMPLEMENTED ;
842
840
}
843
841
}
@@ -858,7 +856,7 @@ boolean doDL(double x, long y) {
858
856
859
857
@ Fallback
860
858
@ SuppressWarnings ("unused" )
861
- Object doGeneric (Object a , Object b ) {
859
+ PNotImplemented doGeneric (Object a , Object b ) {
862
860
return PNotImplemented .NOT_IMPLEMENTED ;
863
861
}
864
862
}
@@ -879,7 +877,7 @@ boolean doDL(double x, long y) {
879
877
880
878
@ Fallback
881
879
@ SuppressWarnings ("unused" )
882
- Object doGeneric (Object a , Object b ) {
880
+ PNotImplemented doGeneric (Object a , Object b ) {
883
881
return PNotImplemented .NOT_IMPLEMENTED ;
884
882
}
885
883
}
0 commit comments