< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Double256Vector.java

Print this page

219 
220     @ForceInline
221     final @Override
222     Double256Vector tOp(Vector<Double> v1, Vector<Double> v2, FTriOp f) {
223         return (Double256Vector)
224             super.tOpTemplate((Double256Vector)v1, (Double256Vector)v2,
225                               f);  // specialize
226     }
227 
228     @ForceInline
229     final @Override
230     Double256Vector tOp(Vector<Double> v1, Vector<Double> v2,
231                      VectorMask<Double> m, FTriOp f) {
232         return (Double256Vector)
233             super.tOpTemplate((Double256Vector)v1, (Double256Vector)v2,
234                               (Double256Mask)m, f);  // specialize
235     }
236 
237     @ForceInline
238     final @Override
239     double rOp(double v, FBinOp f) {
240         return super.rOpTemplate(v, f);  // specialize
241     }
242 
243     @Override
244     @ForceInline
245     public final <F>
246     Vector<F> convertShape(VectorOperators.Conversion<Double,F> conv,
247                            VectorSpecies<F> rsp, int part) {
248         return super.convertShapeTemplate(conv, rsp, part);  // specialize
249     }
250 
251     @Override
252     @ForceInline
253     public final <F>
254     Vector<F> reinterpretShape(VectorSpecies<F> toSpecies, int part) {
255         return super.reinterpretShapeTemplate(toSpecies, part);  // specialize
256     }
257 
258     // Specialized algebraic operations:
259 
260     // The following definition forces a specialized version of this
261     // crucial method into the v-table of this class.  A call to add()
262     // will inline to a call to lanewise(ADD,), at which point the JIT
263     // intrinsic will have the opcode of ADD, plus all the metadata
264     // for this particular class, enabling it to generate precise
265     // code.
266     //
267     // There is probably no benefit to the JIT to specialize the
268     // masked or broadcast versions of the lanewise method.
269 
270     @Override
271     @ForceInline
272     public Double256Vector lanewise(Unary op) {
273         return (Double256Vector) super.lanewiseTemplate(op);  // specialize
274     }
275 






276     @Override
277     @ForceInline
278     public Double256Vector lanewise(Binary op, Vector<Double> v) {
279         return (Double256Vector) super.lanewiseTemplate(op, v);  // specialize
280     }
281 






282 
283     /*package-private*/
284     @Override
285     @ForceInline
286     public final
287     Double256Vector
288     lanewise(VectorOperators.Ternary op, Vector<Double> v1, Vector<Double> v2) {
289         return (Double256Vector) super.lanewiseTemplate(op, v1, v2);  // specialize
290     }
291 








292     @Override
293     @ForceInline
294     public final
295     Double256Vector addIndex(int scale) {
296         return (Double256Vector) super.addIndexTemplate(scale);  // specialize
297     }
298 
299     // Type specific horizontal reductions
300 
301     @Override
302     @ForceInline
303     public final double reduceLanes(VectorOperators.Associative op) {
304         return super.reduceLanesTemplate(op);  // specialized
305     }
306 
307     @Override
308     @ForceInline
309     public final double reduceLanes(VectorOperators.Associative op,
310                                     VectorMask<Double> m) {
311         return super.reduceLanesTemplate(op, m);  // specialized
312     }
313 
314     @Override
315     @ForceInline
316     public final long reduceLanesToLong(VectorOperators.Associative op) {
317         return (long) super.reduceLanesTemplate(op);  // specialized
318     }
319 
320     @Override
321     @ForceInline
322     public final long reduceLanesToLong(VectorOperators.Associative op,
323                                         VectorMask<Double> m) {
324         return (long) super.reduceLanesTemplate(op, m);  // specialized
325     }
326 
327     @ForceInline
328     public VectorShuffle<Double> toShuffle() {
329         return super.toShuffleTemplate(Double256Shuffle.class); // specialize
330     }
331 
332     // Specialized unary testing
333 
334     @Override
335     @ForceInline
336     public final Double256Mask test(Test op) {
337         return super.testTemplate(Double256Mask.class, op);  // specialize
338     }
339 
340     // Specialized comparisons
341 
342     @Override
343     @ForceInline
344     public final Double256Mask compare(Comparison op, Vector<Double> v) {
345         return super.compareTemplate(Double256Mask.class, op, v);  // specialize
346     }
347 
348     @Override
349     @ForceInline
350     public final Double256Mask compare(Comparison op, double s) {
351         return super.compareTemplate(Double256Mask.class, op, s);  // specialize
352     }
353 
354     @Override
355     @ForceInline
356     public final Double256Mask compare(Comparison op, long s) {
357         return super.compareTemplate(Double256Mask.class, op, s);  // specialize
358     }
359 







360     @Override
361     @ForceInline
362     public Double256Vector blend(Vector<Double> v, VectorMask<Double> m) {
363         return (Double256Vector)
364             super.blendTemplate(Double256Mask.class,
365                                 (Double256Vector) v,
366                                 (Double256Mask) m);  // specialize
367     }
368 
369     @Override
370     @ForceInline
371     public Double256Vector slice(int origin, Vector<Double> v) {
372         return (Double256Vector) super.sliceTemplate(origin, v);  // specialize
373     }
374 
375     @Override
376     @ForceInline
377     public Double256Vector slice(int origin) {
378         return (Double256Vector) super.sliceTemplate(origin);  // specialize
379     }

396     @Override
397     @ForceInline
398     public Double256Vector unslice(int origin) {
399         return (Double256Vector) super.unsliceTemplate(origin);  // specialize
400     }
401 
402     @Override
403     @ForceInline
404     public Double256Vector rearrange(VectorShuffle<Double> s) {
405         return (Double256Vector)
406             super.rearrangeTemplate(Double256Shuffle.class,
407                                     (Double256Shuffle) s);  // specialize
408     }
409 
410     @Override
411     @ForceInline
412     public Double256Vector rearrange(VectorShuffle<Double> shuffle,
413                                   VectorMask<Double> m) {
414         return (Double256Vector)
415             super.rearrangeTemplate(Double256Shuffle.class,

416                                     (Double256Shuffle) shuffle,
417                                     (Double256Mask) m);  // specialize
418     }
419 
420     @Override
421     @ForceInline
422     public Double256Vector rearrange(VectorShuffle<Double> s,
423                                   Vector<Double> v) {
424         return (Double256Vector)
425             super.rearrangeTemplate(Double256Shuffle.class,
426                                     (Double256Shuffle) s,
427                                     (Double256Vector) v);  // specialize
428     }
429 
430     @Override
431     @ForceInline
432     public Double256Vector selectFrom(Vector<Double> v) {
433         return (Double256Vector)
434             super.selectFromTemplate((Double256Vector) v);  // specialize
435     }

567 
568         /**
569          * Helper function for lane-wise mask conversions.
570          * This function kicks in after intrinsic failure.
571          */
572         @ForceInline
573         private final <E>
574         VectorMask<E> defaultMaskCast(AbstractSpecies<E> dsp) {
575             if (length() != dsp.laneCount())
576                 throw new IllegalArgumentException("VectorMask length and species length differ");
577             boolean[] maskArray = toArray();
578             return  dsp.maskFactory(maskArray).check(dsp);
579         }
580 
581         @Override
582         @ForceInline
583         public <E> VectorMask<E> cast(VectorSpecies<E> dsp) {
584             AbstractSpecies<E> species = (AbstractSpecies<E>) dsp;
585             if (length() != species.laneCount())
586                 throw new IllegalArgumentException("VectorMask length and species length differ");
587             if (VSIZE == species.vectorBitSize()) {
588                 Class<?> dtype = species.elementType();
589                 Class<?> dmtype = species.maskType();
590                 return VectorSupport.convert(VectorSupport.VECTOR_OP_REINTERPRET,
591                     this.getClass(), ETYPE, VLENGTH,
592                     dmtype, dtype, VLENGTH,
593                     this, species,
594                     Double256Mask::defaultMaskCast);
595             }
596             return this.defaultMaskCast(species);
597         }
598 
599         @Override
600         @ForceInline
601         public Double256Mask eq(VectorMask<Double> mask) {
602             Objects.requireNonNull(mask);
603             Double256Mask m = (Double256Mask)mask;
604             return xor(m.not());
605         }
606 
607         // Unary operations
608 
609         @Override
610         @ForceInline
611         public Double256Mask not() {
612             return xor(maskAll(true));
613         }
614 
615         // Binary operations
616 
617         @Override
618         @ForceInline
619         public Double256Mask and(VectorMask<Double> mask) {
620             Objects.requireNonNull(mask);
621             Double256Mask m = (Double256Mask)mask;
622             return VectorSupport.binaryOp(VECTOR_OP_AND, Double256Mask.class, long.class, VLENGTH,
623                                              this, m,
624                                              (m1, m2) -> m1.bOp(m2, (i, a, b) -> a & b));
625         }
626 
627         @Override
628         @ForceInline
629         public Double256Mask or(VectorMask<Double> mask) {
630             Objects.requireNonNull(mask);
631             Double256Mask m = (Double256Mask)mask;
632             return VectorSupport.binaryOp(VECTOR_OP_OR, Double256Mask.class, long.class, VLENGTH,
633                                              this, m,
634                                              (m1, m2) -> m1.bOp(m2, (i, a, b) -> a | b));
635         }
636 
637         @ForceInline
638         /* package-private */
639         Double256Mask xor(VectorMask<Double> mask) {
640             Objects.requireNonNull(mask);
641             Double256Mask m = (Double256Mask)mask;
642             return VectorSupport.binaryOp(VECTOR_OP_XOR, Double256Mask.class, long.class, VLENGTH,
643                                           this, m,
644                                           (m1, m2) -> m1.bOp(m2, (i, a, b) -> a ^ b));
645         }
646 
647         // Mask Query operations
648 
649         @Override
650         @ForceInline
651         public int trueCount() {
652             return VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_TRUECOUNT, Double256Mask.class, long.class, VLENGTH, this,
653                                                       (m) -> trueCountHelper(((Double256Mask)m).getBits()));
654         }
655 
656         @Override
657         @ForceInline
658         public int firstTrue() {
659             return VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_FIRSTTRUE, Double256Mask.class, long.class, VLENGTH, this,
660                                                       (m) -> firstTrueHelper(((Double256Mask)m).getBits()));
661         }
662 
663         @Override
664         @ForceInline
665         public int lastTrue() {
666             return VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_LASTTRUE, Double256Mask.class, long.class, VLENGTH, this,
667                                                       (m) -> lastTrueHelper(((Double256Mask)m).getBits()));










668         }
669 
670         // Reductions
671 
672         @Override
673         @ForceInline
674         public boolean anyTrue() {
675             return VectorSupport.test(BT_ne, Double256Mask.class, long.class, VLENGTH,
676                                          this, vspecies().maskAll(true),
677                                          (m, __) -> anyTrueHelper(((Double256Mask)m).getBits()));
678         }
679 
680         @Override
681         @ForceInline
682         public boolean allTrue() {
683             return VectorSupport.test(BT_overflow, Double256Mask.class, long.class, VLENGTH,
684                                          this, vspecies().maskAll(true),
685                                          (m, __) -> allTrueHelper(((Double256Mask)m).getBits()));
686         }
687 

758             byte[] r = new byte[reorder1.length];
759             for (int i = 0; i < reorder1.length; i++) {
760                 int ssi = reorder2[i];
761                 r[i] = reorder1[ssi];  // throws on exceptional index
762             }
763             return new Double256Shuffle(r);
764         }
765     }
766 
767     // ================================================
768 
769     // Specialized low-level memory operations.
770 
771     @ForceInline
772     @Override
773     final
774     DoubleVector fromArray0(double[] a, int offset) {
775         return super.fromArray0Template(a, offset);  // specialize
776     }
777 














778 
779 
780     @ForceInline
781     @Override
782     final
783     DoubleVector fromByteArray0(byte[] a, int offset) {
784         return super.fromByteArray0Template(a, offset);  // specialize
785     }
786 







787     @ForceInline
788     @Override
789     final
790     DoubleVector fromByteBuffer0(ByteBuffer bb, int offset) {
791         return super.fromByteBuffer0Template(bb, offset);  // specialize
792     }
793 







794     @ForceInline
795     @Override
796     final
797     void intoArray0(double[] a, int offset) {
798         super.intoArray0Template(a, offset);  // specialize
799     }
800 















801     @ForceInline
802     @Override
803     final
804     void intoByteArray0(byte[] a, int offset) {
805         super.intoByteArray0Template(a, offset);  // specialize
806     }
807 















808     // End of specialized low-level memory operations.
809 
810     // ================================================
811 
812 }

219 
220     @ForceInline
221     final @Override
222     Double256Vector tOp(Vector<Double> v1, Vector<Double> v2, FTriOp f) {
223         return (Double256Vector)
224             super.tOpTemplate((Double256Vector)v1, (Double256Vector)v2,
225                               f);  // specialize
226     }
227 
228     @ForceInline
229     final @Override
230     Double256Vector tOp(Vector<Double> v1, Vector<Double> v2,
231                      VectorMask<Double> m, FTriOp f) {
232         return (Double256Vector)
233             super.tOpTemplate((Double256Vector)v1, (Double256Vector)v2,
234                               (Double256Mask)m, f);  // specialize
235     }
236 
237     @ForceInline
238     final @Override
239     double rOp(double v, VectorMask<Double> m, FBinOp f) {
240         return super.rOpTemplate(v, m, f);  // specialize
241     }
242 
243     @Override
244     @ForceInline
245     public final <F>
246     Vector<F> convertShape(VectorOperators.Conversion<Double,F> conv,
247                            VectorSpecies<F> rsp, int part) {
248         return super.convertShapeTemplate(conv, rsp, part);  // specialize
249     }
250 
251     @Override
252     @ForceInline
253     public final <F>
254     Vector<F> reinterpretShape(VectorSpecies<F> toSpecies, int part) {
255         return super.reinterpretShapeTemplate(toSpecies, part);  // specialize
256     }
257 
258     // Specialized algebraic operations:
259 
260     // The following definition forces a specialized version of this
261     // crucial method into the v-table of this class.  A call to add()
262     // will inline to a call to lanewise(ADD,), at which point the JIT
263     // intrinsic will have the opcode of ADD, plus all the metadata
264     // for this particular class, enabling it to generate precise
265     // code.
266     //
267     // There is probably no benefit to the JIT to specialize the
268     // masked or broadcast versions of the lanewise method.
269 
270     @Override
271     @ForceInline
272     public Double256Vector lanewise(Unary op) {
273         return (Double256Vector) super.lanewiseTemplate(op);  // specialize
274     }
275 
276     @Override
277     @ForceInline
278     public Double256Vector lanewise(Unary op, VectorMask<Double> m) {
279         return (Double256Vector) super.lanewiseTemplate(op, Double256Mask.class, (Double256Mask) m);  // specialize
280     }
281 
282     @Override
283     @ForceInline
284     public Double256Vector lanewise(Binary op, Vector<Double> v) {
285         return (Double256Vector) super.lanewiseTemplate(op, v);  // specialize
286     }
287 
288     @Override
289     @ForceInline
290     public Double256Vector lanewise(Binary op, Vector<Double> v, VectorMask<Double> m) {
291         return (Double256Vector) super.lanewiseTemplate(op, Double256Mask.class, v, (Double256Mask) m);  // specialize
292     }
293 
294 
295     /*package-private*/
296     @Override
297     @ForceInline
298     public final
299     Double256Vector
300     lanewise(Ternary op, Vector<Double> v1, Vector<Double> v2) {
301         return (Double256Vector) super.lanewiseTemplate(op, v1, v2);  // specialize
302     }
303 
304     @Override
305     @ForceInline
306     public final
307     Double256Vector
308     lanewise(Ternary op, Vector<Double> v1, Vector<Double> v2, VectorMask<Double> m) {
309         return (Double256Vector) super.lanewiseTemplate(op, Double256Mask.class, v1, v2, (Double256Mask) m);  // specialize
310     }
311 
312     @Override
313     @ForceInline
314     public final
315     Double256Vector addIndex(int scale) {
316         return (Double256Vector) super.addIndexTemplate(scale);  // specialize
317     }
318 
319     // Type specific horizontal reductions
320 
321     @Override
322     @ForceInline
323     public final double reduceLanes(VectorOperators.Associative op) {
324         return super.reduceLanesTemplate(op);  // specialized
325     }
326 
327     @Override
328     @ForceInline
329     public final double reduceLanes(VectorOperators.Associative op,
330                                     VectorMask<Double> m) {
331         return super.reduceLanesTemplate(op, Double256Mask.class, (Double256Mask) m);  // specialized
332     }
333 
334     @Override
335     @ForceInline
336     public final long reduceLanesToLong(VectorOperators.Associative op) {
337         return (long) super.reduceLanesTemplate(op);  // specialized
338     }
339 
340     @Override
341     @ForceInline
342     public final long reduceLanesToLong(VectorOperators.Associative op,
343                                         VectorMask<Double> m) {
344         return (long) super.reduceLanesTemplate(op, Double256Mask.class, (Double256Mask) m);  // specialized
345     }
346 
347     @ForceInline
348     public VectorShuffle<Double> toShuffle() {
349         return super.toShuffleTemplate(Double256Shuffle.class); // specialize
350     }
351 
352     // Specialized unary testing
353 
354     @Override
355     @ForceInline
356     public final Double256Mask test(Test op) {
357         return super.testTemplate(Double256Mask.class, op);  // specialize
358     }
359 
360     // Specialized comparisons
361 
362     @Override
363     @ForceInline
364     public final Double256Mask compare(Comparison op, Vector<Double> v) {
365         return super.compareTemplate(Double256Mask.class, op, v);  // specialize
366     }
367 
368     @Override
369     @ForceInline
370     public final Double256Mask compare(Comparison op, double s) {
371         return super.compareTemplate(Double256Mask.class, op, s);  // specialize
372     }
373 
374     @Override
375     @ForceInline
376     public final Double256Mask compare(Comparison op, long s) {
377         return super.compareTemplate(Double256Mask.class, op, s);  // specialize
378     }
379 
380     @Override
381     @ForceInline
382     public final Double256Mask compare(Comparison op, Vector<Double> v, VectorMask<Double> m) {
383         return super.compareTemplate(Double256Mask.class, op, v, (Double256Mask) m);
384     }
385 
386 
387     @Override
388     @ForceInline
389     public Double256Vector blend(Vector<Double> v, VectorMask<Double> m) {
390         return (Double256Vector)
391             super.blendTemplate(Double256Mask.class,
392                                 (Double256Vector) v,
393                                 (Double256Mask) m);  // specialize
394     }
395 
396     @Override
397     @ForceInline
398     public Double256Vector slice(int origin, Vector<Double> v) {
399         return (Double256Vector) super.sliceTemplate(origin, v);  // specialize
400     }
401 
402     @Override
403     @ForceInline
404     public Double256Vector slice(int origin) {
405         return (Double256Vector) super.sliceTemplate(origin);  // specialize
406     }

423     @Override
424     @ForceInline
425     public Double256Vector unslice(int origin) {
426         return (Double256Vector) super.unsliceTemplate(origin);  // specialize
427     }
428 
429     @Override
430     @ForceInline
431     public Double256Vector rearrange(VectorShuffle<Double> s) {
432         return (Double256Vector)
433             super.rearrangeTemplate(Double256Shuffle.class,
434                                     (Double256Shuffle) s);  // specialize
435     }
436 
437     @Override
438     @ForceInline
439     public Double256Vector rearrange(VectorShuffle<Double> shuffle,
440                                   VectorMask<Double> m) {
441         return (Double256Vector)
442             super.rearrangeTemplate(Double256Shuffle.class,
443                                     Double256Mask.class,
444                                     (Double256Shuffle) shuffle,
445                                     (Double256Mask) m);  // specialize
446     }
447 
448     @Override
449     @ForceInline
450     public Double256Vector rearrange(VectorShuffle<Double> s,
451                                   Vector<Double> v) {
452         return (Double256Vector)
453             super.rearrangeTemplate(Double256Shuffle.class,
454                                     (Double256Shuffle) s,
455                                     (Double256Vector) v);  // specialize
456     }
457 
458     @Override
459     @ForceInline
460     public Double256Vector selectFrom(Vector<Double> v) {
461         return (Double256Vector)
462             super.selectFromTemplate((Double256Vector) v);  // specialize
463     }

595 
596         /**
597          * Helper function for lane-wise mask conversions.
598          * This function kicks in after intrinsic failure.
599          */
600         @ForceInline
601         private final <E>
602         VectorMask<E> defaultMaskCast(AbstractSpecies<E> dsp) {
603             if (length() != dsp.laneCount())
604                 throw new IllegalArgumentException("VectorMask length and species length differ");
605             boolean[] maskArray = toArray();
606             return  dsp.maskFactory(maskArray).check(dsp);
607         }
608 
609         @Override
610         @ForceInline
611         public <E> VectorMask<E> cast(VectorSpecies<E> dsp) {
612             AbstractSpecies<E> species = (AbstractSpecies<E>) dsp;
613             if (length() != species.laneCount())
614                 throw new IllegalArgumentException("VectorMask length and species length differ");
615 
616             return VectorSupport.convert(VectorSupport.VECTOR_OP_CAST,
617                 this.getClass(), ETYPE, VLENGTH,
618                 species.maskType(), species.elementType(), VLENGTH,
619                 this, species,
620                 (m, s) -> s.maskFactory(m.toArray()).check(s));




621         }
622 
623         @Override
624         @ForceInline
625         public Double256Mask eq(VectorMask<Double> mask) {
626             Objects.requireNonNull(mask);
627             Double256Mask m = (Double256Mask)mask;
628             return xor(m.not());
629         }
630 
631         // Unary operations
632 
633         @Override
634         @ForceInline
635         public Double256Mask not() {
636             return xor(maskAll(true));
637         }
638 
639         // Binary operations
640 
641         @Override
642         @ForceInline
643         public Double256Mask and(VectorMask<Double> mask) {
644             Objects.requireNonNull(mask);
645             Double256Mask m = (Double256Mask)mask;
646             return VectorSupport.binaryOp(VECTOR_OP_AND, Double256Mask.class, null, long.class, VLENGTH,
647                                           this, m, null,
648                                           (m1, m2, vm) -> m1.bOp(m2, (i, a, b) -> a & b));
649         }
650 
651         @Override
652         @ForceInline
653         public Double256Mask or(VectorMask<Double> mask) {
654             Objects.requireNonNull(mask);
655             Double256Mask m = (Double256Mask)mask;
656             return VectorSupport.binaryOp(VECTOR_OP_OR, Double256Mask.class, null, long.class, VLENGTH,
657                                           this, m, null,
658                                           (m1, m2, vm) -> m1.bOp(m2, (i, a, b) -> a | b));
659         }
660 
661         @ForceInline
662         /* package-private */
663         Double256Mask xor(VectorMask<Double> mask) {
664             Objects.requireNonNull(mask);
665             Double256Mask m = (Double256Mask)mask;
666             return VectorSupport.binaryOp(VECTOR_OP_XOR, Double256Mask.class, null, long.class, VLENGTH,
667                                           this, m, null,
668                                           (m1, m2, vm) -> m1.bOp(m2, (i, a, b) -> a ^ b));
669         }
670 
671         // Mask Query operations
672 
673         @Override
674         @ForceInline
675         public int trueCount() {
676             return (int) VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_TRUECOUNT, Double256Mask.class, long.class, VLENGTH, this,
677                                                       (m) -> trueCountHelper(m.getBits()));
678         }
679 
680         @Override
681         @ForceInline
682         public int firstTrue() {
683             return (int) VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_FIRSTTRUE, Double256Mask.class, long.class, VLENGTH, this,
684                                                       (m) -> firstTrueHelper(m.getBits()));
685         }
686 
687         @Override
688         @ForceInline
689         public int lastTrue() {
690             return (int) VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_LASTTRUE, Double256Mask.class, long.class, VLENGTH, this,
691                                                       (m) -> lastTrueHelper(m.getBits()));
692         }
693 
694         @Override
695         @ForceInline
696         public long toLong() {
697             if (length() > Long.SIZE) {
698                 throw new UnsupportedOperationException("too many lanes for one long");
699             }
700             return VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_TOLONG, Double256Mask.class, long.class, VLENGTH, this,
701                                                       (m) -> toLongHelper(m.getBits()));
702         }
703 
704         // Reductions
705 
706         @Override
707         @ForceInline
708         public boolean anyTrue() {
709             return VectorSupport.test(BT_ne, Double256Mask.class, long.class, VLENGTH,
710                                          this, vspecies().maskAll(true),
711                                          (m, __) -> anyTrueHelper(((Double256Mask)m).getBits()));
712         }
713 
714         @Override
715         @ForceInline
716         public boolean allTrue() {
717             return VectorSupport.test(BT_overflow, Double256Mask.class, long.class, VLENGTH,
718                                          this, vspecies().maskAll(true),
719                                          (m, __) -> allTrueHelper(((Double256Mask)m).getBits()));
720         }
721 

792             byte[] r = new byte[reorder1.length];
793             for (int i = 0; i < reorder1.length; i++) {
794                 int ssi = reorder2[i];
795                 r[i] = reorder1[ssi];  // throws on exceptional index
796             }
797             return new Double256Shuffle(r);
798         }
799     }
800 
801     // ================================================
802 
803     // Specialized low-level memory operations.
804 
805     @ForceInline
806     @Override
807     final
808     DoubleVector fromArray0(double[] a, int offset) {
809         return super.fromArray0Template(a, offset);  // specialize
810     }
811 
812     @ForceInline
813     @Override
814     final
815     DoubleVector fromArray0(double[] a, int offset, VectorMask<Double> m) {
816         return super.fromArray0Template(Double256Mask.class, a, offset, (Double256Mask) m);  // specialize
817     }
818 
819     @ForceInline
820     @Override
821     final
822     DoubleVector fromArray0(double[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Double> m) {
823         return super.fromArray0Template(Double256Mask.class, a, offset, indexMap, mapOffset, (Double256Mask) m);
824     }
825 
826 
827 
828     @ForceInline
829     @Override
830     final
831     DoubleVector fromByteArray0(byte[] a, int offset) {
832         return super.fromByteArray0Template(a, offset);  // specialize
833     }
834 
835     @ForceInline
836     @Override
837     final
838     DoubleVector fromByteArray0(byte[] a, int offset, VectorMask<Double> m) {
839         return super.fromByteArray0Template(Double256Mask.class, a, offset, (Double256Mask) m);  // specialize
840     }
841 
842     @ForceInline
843     @Override
844     final
845     DoubleVector fromByteBuffer0(ByteBuffer bb, int offset) {
846         return super.fromByteBuffer0Template(bb, offset);  // specialize
847     }
848 
849     @ForceInline
850     @Override
851     final
852     DoubleVector fromByteBuffer0(ByteBuffer bb, int offset, VectorMask<Double> m) {
853         return super.fromByteBuffer0Template(Double256Mask.class, bb, offset, (Double256Mask) m);  // specialize
854     }
855 
856     @ForceInline
857     @Override
858     final
859     void intoArray0(double[] a, int offset) {
860         super.intoArray0Template(a, offset);  // specialize
861     }
862 
863     @ForceInline
864     @Override
865     final
866     void intoArray0(double[] a, int offset, VectorMask<Double> m) {
867         super.intoArray0Template(Double256Mask.class, a, offset, (Double256Mask) m);
868     }
869 
870     @ForceInline
871     @Override
872     final
873     void intoArray0(double[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Double> m) {
874         super.intoArray0Template(Double256Mask.class, a, offset, indexMap, mapOffset, (Double256Mask) m);
875     }
876 
877 
878     @ForceInline
879     @Override
880     final
881     void intoByteArray0(byte[] a, int offset) {
882         super.intoByteArray0Template(a, offset);  // specialize
883     }
884 
885     @ForceInline
886     @Override
887     final
888     void intoByteArray0(byte[] a, int offset, VectorMask<Double> m) {
889         super.intoByteArray0Template(Double256Mask.class, a, offset, (Double256Mask) m);  // specialize
890     }
891 
892     @ForceInline
893     @Override
894     final
895     void intoByteBuffer0(ByteBuffer bb, int offset, VectorMask<Double> m) {
896         super.intoByteBuffer0Template(Double256Mask.class, bb, offset, (Double256Mask) m);
897     }
898 
899 
900     // End of specialized low-level memory operations.
901 
902     // ================================================
903 
904 }
< prev index next >