< prev index next >

test/jdk/jdk/incubator/vector/templates/Unit-Binary-op-math.template

Print this page


 1     static $type$ [[TEST]]($type$ a, $type$ b) {
 2         return ($type$)([[TEST_OP]]);
 3     }
 4 
 5     static $type$ strict[[TEST]]($type$ a, $type$ b) {
 6         return ($type$)(Strict[[TEST_OP]]);
 7     }
 8 
 9     @Test(dataProvider = "$type$BinaryOpProvider")
10     static void [[TEST]]$vectorteststype$(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb) {
11 [[KERNEL]]
12         assertArraysEqualsWithinOneUlp(r, a, b, $vectorteststype$::[[TEST]], $vectorteststype$::strict[[TEST]]);
13     }
14 

 1 
 2     static $type$ [[TEST]]($type$ a, $type$ b) {
 3         return ($type$)([[TEST_OP]]);
 4     }
 5 
 6     static $type$ strict[[TEST]]($type$ a, $type$ b) {
 7         return ($type$)(Strict[[TEST_OP]]);
 8     }
 9 
10     @Test(dataProvider = "$type$BinaryOpProvider")
11     static void [[TEST]]$vectorteststype$(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb) {
12 [[KERNEL]]
13         assertArraysEqualsWithinOneUlp(r, a, b, $vectorteststype$::[[TEST]], $vectorteststype$::strict[[TEST]]);
14     }
15 
< prev index next >