< prev index next >

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

Print this page

219 
220     @ForceInline
221     final @Override
222     Double512Vector tOp(Vector<Double> v1, Vector<Double> v2, FTriOp f) {
223         return (Double512Vector)
224             super.tOpTemplate((Double512Vector)v1, (Double512Vector)v2,
225                               f);  // specialize
226     }
227 
228     @ForceInline
229     final @Override
230     Double512Vector tOp(Vector<Double> v1, Vector<Double> v2,
231                      VectorMask<Double> m, FTriOp f) {
232         return (Double512Vector)
233             super.tOpTemplate((Double512Vector)v1, (Double512Vector)v2,
234                               (Double512Mask)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 Double512Vector lanewise(Unary op) {
273         return (Double512Vector) super.lanewiseTemplate(op);  // specialize
274     }
275 






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






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








292     @Override
293     @ForceInline
294     public final
295     Double512Vector addIndex(int scale) {
296         return (Double512Vector) 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(Double512Shuffle.class); // specialize
330     }
331 
332     // Specialized unary testing
333 
334     @Override
335     @ForceInline
336     public final Double512Mask test(Test op) {
337         return super.testTemplate(Double512Mask.class, op);  // specialize
338     }
339 
340     // Specialized comparisons
341 
342     @Override
343     @ForceInline
344     public final Double512Mask compare(Comparison op, Vector<Double> v) {
345         return super.compareTemplate(Double512Mask.class, op, v);  // specialize
346     }
347 
348     @Override
349     @ForceInline
350     public final Double512Mask compare(Comparison op, double s) {
351         return super.compareTemplate(Double512Mask.class, op, s);  // specialize
352     }
353 
354     @Override
355     @ForceInline
356     public final Double512Mask compare(Comparison op, long s) {
357         return super.compareTemplate(Double512Mask.class, op, s);  // specialize
358     }
359 







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

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

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

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










676         }
677 
678         // Reductions
679 
680         @Override
681         @ForceInline
682         public boolean anyTrue() {
683             return VectorSupport.test(BT_ne, Double512Mask.class, long.class, VLENGTH,
684                                          this, vspecies().maskAll(true),
685                                          (m, __) -> anyTrueHelper(((Double512Mask)m).getBits()));
686         }
687 
688         @Override
689         @ForceInline
690         public boolean allTrue() {
691             return VectorSupport.test(BT_overflow, Double512Mask.class, long.class, VLENGTH,
692                                          this, vspecies().maskAll(true),
693                                          (m, __) -> allTrueHelper(((Double512Mask)m).getBits()));
694         }
695 

766             byte[] r = new byte[reorder1.length];
767             for (int i = 0; i < reorder1.length; i++) {
768                 int ssi = reorder2[i];
769                 r[i] = reorder1[ssi];  // throws on exceptional index
770             }
771             return new Double512Shuffle(r);
772         }
773     }
774 
775     // ================================================
776 
777     // Specialized low-level memory operations.
778 
779     @ForceInline
780     @Override
781     final
782     DoubleVector fromArray0(double[] a, int offset) {
783         return super.fromArray0Template(a, offset);  // specialize
784     }
785 














786 
787 
788     @ForceInline
789     @Override
790     final
791     DoubleVector fromByteArray0(byte[] a, int offset) {
792         return super.fromByteArray0Template(a, offset);  // specialize
793     }
794 







795     @ForceInline
796     @Override
797     final
798     DoubleVector fromByteBuffer0(ByteBuffer bb, int offset) {
799         return super.fromByteBuffer0Template(bb, offset);  // specialize
800     }
801 







802     @ForceInline
803     @Override
804     final
805     void intoArray0(double[] a, int offset) {
806         super.intoArray0Template(a, offset);  // specialize
807     }
808 















809     @ForceInline
810     @Override
811     final
812     void intoByteArray0(byte[] a, int offset) {
813         super.intoByteArray0Template(a, offset);  // specialize
814     }
815 















816     // End of specialized low-level memory operations.
817 
818     // ================================================
819 
820 }

219 
220     @ForceInline
221     final @Override
222     Double512Vector tOp(Vector<Double> v1, Vector<Double> v2, FTriOp f) {
223         return (Double512Vector)
224             super.tOpTemplate((Double512Vector)v1, (Double512Vector)v2,
225                               f);  // specialize
226     }
227 
228     @ForceInline
229     final @Override
230     Double512Vector tOp(Vector<Double> v1, Vector<Double> v2,
231                      VectorMask<Double> m, FTriOp f) {
232         return (Double512Vector)
233             super.tOpTemplate((Double512Vector)v1, (Double512Vector)v2,
234                               (Double512Mask)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 Double512Vector lanewise(Unary op) {
273         return (Double512Vector) super.lanewiseTemplate(op);  // specialize
274     }
275 
276     @Override
277     @ForceInline
278     public Double512Vector lanewise(Unary op, VectorMask<Double> m) {
279         return (Double512Vector) super.lanewiseTemplate(op, Double512Mask.class, (Double512Mask) m);  // specialize
280     }
281 
282     @Override
283     @ForceInline
284     public Double512Vector lanewise(Binary op, Vector<Double> v) {
285         return (Double512Vector) super.lanewiseTemplate(op, v);  // specialize
286     }
287 
288     @Override
289     @ForceInline
290     public Double512Vector lanewise(Binary op, Vector<Double> v, VectorMask<Double> m) {
291         return (Double512Vector) super.lanewiseTemplate(op, Double512Mask.class, v, (Double512Mask) m);  // specialize
292     }
293 
294 
295     /*package-private*/
296     @Override
297     @ForceInline
298     public final
299     Double512Vector
300     lanewise(Ternary op, Vector<Double> v1, Vector<Double> v2) {
301         return (Double512Vector) super.lanewiseTemplate(op, v1, v2);  // specialize
302     }
303 
304     @Override
305     @ForceInline
306     public final
307     Double512Vector
308     lanewise(Ternary op, Vector<Double> v1, Vector<Double> v2, VectorMask<Double> m) {
309         return (Double512Vector) super.lanewiseTemplate(op, Double512Mask.class, v1, v2, (Double512Mask) m);  // specialize
310     }
311 
312     @Override
313     @ForceInline
314     public final
315     Double512Vector addIndex(int scale) {
316         return (Double512Vector) 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, Double512Mask.class, (Double512Mask) 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, Double512Mask.class, (Double512Mask) m);  // specialized
345     }
346 
347     @ForceInline
348     public VectorShuffle<Double> toShuffle() {
349         return super.toShuffleTemplate(Double512Shuffle.class); // specialize
350     }
351 
352     // Specialized unary testing
353 
354     @Override
355     @ForceInline
356     public final Double512Mask test(Test op) {
357         return super.testTemplate(Double512Mask.class, op);  // specialize
358     }
359 
360     // Specialized comparisons
361 
362     @Override
363     @ForceInline
364     public final Double512Mask compare(Comparison op, Vector<Double> v) {
365         return super.compareTemplate(Double512Mask.class, op, v);  // specialize
366     }
367 
368     @Override
369     @ForceInline
370     public final Double512Mask compare(Comparison op, double s) {
371         return super.compareTemplate(Double512Mask.class, op, s);  // specialize
372     }
373 
374     @Override
375     @ForceInline
376     public final Double512Mask compare(Comparison op, long s) {
377         return super.compareTemplate(Double512Mask.class, op, s);  // specialize
378     }
379 
380     @Override
381     @ForceInline
382     public final Double512Mask compare(Comparison op, Vector<Double> v, VectorMask<Double> m) {
383         return super.compareTemplate(Double512Mask.class, op, v, (Double512Mask) m);
384     }
385 
386 
387     @Override
388     @ForceInline
389     public Double512Vector blend(Vector<Double> v, VectorMask<Double> m) {
390         return (Double512Vector)
391             super.blendTemplate(Double512Mask.class,
392                                 (Double512Vector) v,
393                                 (Double512Mask) m);  // specialize
394     }
395 
396     @Override
397     @ForceInline
398     public Double512Vector slice(int origin, Vector<Double> v) {
399         return (Double512Vector) super.sliceTemplate(origin, v);  // specialize
400     }
401 
402     @Override
403     @ForceInline
404     public Double512Vector slice(int origin) {
405         return (Double512Vector) super.sliceTemplate(origin);  // specialize
406     }

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

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




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

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