VectorAPI Scatter Gather Intrinsic Support
    Vladimir Ivanov 
    vladimir.x.ivanov at oracle.com
       
    Mon Dec  3 19:12:20 UTC 2018
    
    
  
> ========================================================================
> 
> +#if[longOrDouble64]
> +        IntVector<Vector.Shape> vecInd = intSpec.broadcast(b[iy]);
> +#else[longOrDouble64]
> +        IntVector<Vector.Shape> vecInd = intSpec.fromArray(b, iy);
> +#end[longOrDouble64]
> 
> Why do you need a special case for Long64/Double? Doesn't fromArray 
> already cover it?
Nevermind. Found the answer myself:
+#if[longOrDouble64]
+        // We use a 64-bit int vector since there are no Int32 types.
+        // We will broadcast the first value through the vector.
+        Vector.Shape shape = Vector.shapeForVectorBitSize(64);
+#else[longOrDouble64]
...
+       // Load index map into a vector
+#if[longOrDouble64]
+        IntVector<Vector.Shape> vecInd = intSpec.broadcast(b[iy]);
+#else[longOrDouble64]
Best regards,
Vladimir Ivanov
    
    
More information about the panama-dev
mailing list