54
54
* @param <O>
55
55
* output primitive array type, e.g., float[]
56
56
*/
57
- class ConvertBlockProcessor < S extends NativeType < S >, T extends NativeType < T >, I , O > implements BlockProcessor < I , O >
57
+ class ConvertBlockProcessor < I , O > implements BlockProcessor < I , O >
58
58
{
59
- private final S sourceType ;
60
-
61
- private final T targetType ;
62
-
63
59
private final TempArray < I > tempArray ;
64
60
65
61
private final ConvertLoop < I , O > loop ;
@@ -72,19 +68,15 @@ class ConvertBlockProcessor< S extends NativeType< S >, T extends NativeType< T
72
68
73
69
private final BlockProcessorSourceInterval sourceInterval ;
74
70
75
- public ConvertBlockProcessor ( final S sourceType , final T targetType , final ClampType clamp )
71
+ public < S extends NativeType < S >, T extends NativeType < T > > ConvertBlockProcessor ( final S sourceType , final T targetType , final ClampType clamp )
76
72
{
77
- this .sourceType = sourceType ;
78
- this .targetType = targetType ;
79
73
tempArray = TempArray .forPrimitiveType ( sourceType .getNativeTypeFactory ().getPrimitiveType () );
80
74
loop = ConvertLoops .get ( UnaryOperatorType .of ( sourceType , targetType ), clamp );
81
75
sourceInterval = new BlockProcessorSourceInterval ( this );
82
76
}
83
77
84
- private ConvertBlockProcessor ( ConvertBlockProcessor < S , T , I , O > convert )
78
+ private ConvertBlockProcessor ( ConvertBlockProcessor < I , O > convert )
85
79
{
86
- sourceType = convert .sourceType ;
87
- targetType = convert .targetType ;
88
80
tempArray = convert .tempArray .newInstance ();
89
81
loop = convert .loop ;
90
82
sourceInterval = new BlockProcessorSourceInterval ( this );
0 commit comments