< prev index next >

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

Print this page

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






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






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








292     @Override
293     @ForceInline
294     public final
295     Float512Vector addIndex(int scale) {
296         return (Float512Vector) super.addIndexTemplate(scale);  // specialize
297     }
298 
299     // Type specific horizontal reductions
300 
301     @Override
302     @ForceInline
303     public final float reduceLanes(VectorOperators.Associative op) {
304         return super.reduceLanesTemplate(op);  // specialized
305     }
306 
307     @Override
308     @ForceInline
309     public final float reduceLanes(VectorOperators.Associative op,
310                                     VectorMask<Float> 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<Float> m) {
324         return (long) super.reduceLanesTemplate(op, m);  // specialized
325     }
326 
327     @ForceInline
328     public VectorShuffle<Float> toShuffle() {
329         return super.toShuffleTemplate(Float512Shuffle.class); // specialize
330     }
331 
332     // Specialized unary testing
333 
334     @Override
335     @ForceInline
336     public final Float512Mask test(Test op) {
337         return super.testTemplate(Float512Mask.class, op);  // specialize
338     }
339 
340     // Specialized comparisons
341 
342     @Override
343     @ForceInline
344     public final Float512Mask compare(Comparison op, Vector<Float> v) {
345         return super.compareTemplate(Float512Mask.class, op, v);  // specialize
346     }
347 
348     @Override
349     @ForceInline
350     public final Float512Mask compare(Comparison op, float s) {
351         return super.compareTemplate(Float512Mask.class, op, s);  // specialize
352     }
353 
354     @Override
355     @ForceInline
356     public final Float512Mask compare(Comparison op, long s) {
357         return super.compareTemplate(Float512Mask.class, op, s);  // specialize
358     }
359 







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

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

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

591 
592         /**
593          * Helper function for lane-wise mask conversions.
594          * This function kicks in after intrinsic failure.
595          */
596         @ForceInline
597         private final <E>
598         VectorMask<E> defaultMaskCast(AbstractSpecies<E> dsp) {
599             if (length() != dsp.laneCount())
600                 throw new IllegalArgumentException("VectorMask length and species length differ");
601             boolean[] maskArray = toArray();
602             return  dsp.maskFactory(maskArray).check(dsp);
603         }
604 
605         @Override
606         @ForceInline
607         public <E> VectorMask<E> cast(VectorSpecies<E> dsp) {
608             AbstractSpecies<E> species = (AbstractSpecies<E>) dsp;
609             if (length() != species.laneCount())
610                 throw new IllegalArgumentException("VectorMask length and species length differ");
611             if (VSIZE == species.vectorBitSize()) {
612                 Class<?> dtype = species.elementType();
613                 Class<?> dmtype = species.maskType();
614                 return VectorSupport.convert(VectorSupport.VECTOR_OP_REINTERPRET,
615                     this.getClass(), ETYPE, VLENGTH,
616                     dmtype, dtype, VLENGTH,
617                     this, species,
618                     Float512Mask::defaultMaskCast);
619             }
620             return this.defaultMaskCast(species);
621         }
622 
623         @Override
624         @ForceInline
625         public Float512Mask eq(VectorMask<Float> mask) {
626             Objects.requireNonNull(mask);
627             Float512Mask m = (Float512Mask)mask;
628             return xor(m.not());
629         }
630 
631         // Unary operations
632 
633         @Override
634         @ForceInline
635         public Float512Mask not() {
636             return xor(maskAll(true));
637         }
638 
639         // Binary operations
640 
641         @Override
642         @ForceInline
643         public Float512Mask and(VectorMask<Float> mask) {
644             Objects.requireNonNull(mask);
645             Float512Mask m = (Float512Mask)mask;
646             return VectorSupport.binaryOp(VECTOR_OP_AND, Float512Mask.class, int.class, VLENGTH,
647                                              this, m,
648                                              (m1, m2) -> m1.bOp(m2, (i, a, b) -> a & b));
649         }
650 
651         @Override
652         @ForceInline
653         public Float512Mask or(VectorMask<Float> mask) {
654             Objects.requireNonNull(mask);
655             Float512Mask m = (Float512Mask)mask;
656             return VectorSupport.binaryOp(VECTOR_OP_OR, Float512Mask.class, int.class, VLENGTH,
657                                              this, m,
658                                              (m1, m2) -> m1.bOp(m2, (i, a, b) -> a | b));
659         }
660 
661         @ForceInline
662         /* package-private */
663         Float512Mask xor(VectorMask<Float> mask) {
664             Objects.requireNonNull(mask);
665             Float512Mask m = (Float512Mask)mask;
666             return VectorSupport.binaryOp(VECTOR_OP_XOR, Float512Mask.class, int.class, VLENGTH,
667                                           this, m,
668                                           (m1, m2) -> 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 VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_TRUECOUNT, Float512Mask.class, int.class, VLENGTH, this,
677                                                       (m) -> trueCountHelper(((Float512Mask)m).getBits()));
678         }
679 
680         @Override
681         @ForceInline
682         public int firstTrue() {
683             return VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_FIRSTTRUE, Float512Mask.class, int.class, VLENGTH, this,
684                                                       (m) -> firstTrueHelper(((Float512Mask)m).getBits()));
685         }
686 
687         @Override
688         @ForceInline
689         public int lastTrue() {
690             return VectorSupport.maskReductionCoerced(VECTOR_OP_MASK_LASTTRUE, Float512Mask.class, int.class, VLENGTH, this,
691                                                       (m) -> lastTrueHelper(((Float512Mask)m).getBits()));










692         }
693 
694         // Reductions
695 
696         @Override
697         @ForceInline
698         public boolean anyTrue() {
699             return VectorSupport.test(BT_ne, Float512Mask.class, int.class, VLENGTH,
700                                          this, vspecies().maskAll(true),
701                                          (m, __) -> anyTrueHelper(((Float512Mask)m).getBits()));
702         }
703 
704         @Override
705         @ForceInline
706         public boolean allTrue() {
707             return VectorSupport.test(BT_overflow, Float512Mask.class, int.class, VLENGTH,
708                                          this, vspecies().maskAll(true),
709                                          (m, __) -> allTrueHelper(((Float512Mask)m).getBits()));
710         }
711 

782             byte[] r = new byte[reorder1.length];
783             for (int i = 0; i < reorder1.length; i++) {
784                 int ssi = reorder2[i];
785                 r[i] = reorder1[ssi];  // throws on exceptional index
786             }
787             return new Float512Shuffle(r);
788         }
789     }
790 
791     // ================================================
792 
793     // Specialized low-level memory operations.
794 
795     @ForceInline
796     @Override
797     final
798     FloatVector fromArray0(float[] a, int offset) {
799         return super.fromArray0Template(a, offset);  // specialize
800     }
801 














802 
803 
804     @ForceInline
805     @Override
806     final
807     FloatVector fromByteArray0(byte[] a, int offset) {
808         return super.fromByteArray0Template(a, offset);  // specialize
809     }
810 







811     @ForceInline
812     @Override
813     final
814     FloatVector fromByteBuffer0(ByteBuffer bb, int offset) {
815         return super.fromByteBuffer0Template(bb, offset);  // specialize
816     }
817 







818     @ForceInline
819     @Override
820     final
821     void intoArray0(float[] a, int offset) {
822         super.intoArray0Template(a, offset);  // specialize
823     }
824 















825     @ForceInline
826     @Override
827     final
828     void intoByteArray0(byte[] a, int offset) {
829         super.intoByteArray0Template(a, offset);  // specialize
830     }
831 















832     // End of specialized low-level memory operations.
833 
834     // ================================================
835 
836 }

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

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

619 
620         /**
621          * Helper function for lane-wise mask conversions.
622          * This function kicks in after intrinsic failure.
623          */
624         @ForceInline
625         private final <E>
626         VectorMask<E> defaultMaskCast(AbstractSpecies<E> dsp) {
627             if (length() != dsp.laneCount())
628                 throw new IllegalArgumentException("VectorMask length and species length differ");
629             boolean[] maskArray = toArray();
630             return  dsp.maskFactory(maskArray).check(dsp);
631         }
632 
633         @Override
634         @ForceInline
635         public <E> VectorMask<E> cast(VectorSpecies<E> dsp) {
636             AbstractSpecies<E> species = (AbstractSpecies<E>) dsp;
637             if (length() != species.laneCount())
638                 throw new IllegalArgumentException("VectorMask length and species length differ");
639 
640             return VectorSupport.convert(VectorSupport.VECTOR_OP_CAST,
641                 this.getClass(), ETYPE, VLENGTH,
642                 species.maskType(), species.elementType(), VLENGTH,
643                 this, species,
644                 (m, s) -> s.maskFactory(m.toArray()).check(s));




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

816             byte[] r = new byte[reorder1.length];
817             for (int i = 0; i < reorder1.length; i++) {
818                 int ssi = reorder2[i];
819                 r[i] = reorder1[ssi];  // throws on exceptional index
820             }
821             return new Float512Shuffle(r);
822         }
823     }
824 
825     // ================================================
826 
827     // Specialized low-level memory operations.
828 
829     @ForceInline
830     @Override
831     final
832     FloatVector fromArray0(float[] a, int offset) {
833         return super.fromArray0Template(a, offset);  // specialize
834     }
835 
836     @ForceInline
837     @Override
838     final
839     FloatVector fromArray0(float[] a, int offset, VectorMask<Float> m) {
840         return super.fromArray0Template(Float512Mask.class, a, offset, (Float512Mask) m);  // specialize
841     }
842 
843     @ForceInline
844     @Override
845     final
846     FloatVector fromArray0(float[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Float> m) {
847         return super.fromArray0Template(Float512Mask.class, a, offset, indexMap, mapOffset, (Float512Mask) m);
848     }
849 
850 
851 
852     @ForceInline
853     @Override
854     final
855     FloatVector fromByteArray0(byte[] a, int offset) {
856         return super.fromByteArray0Template(a, offset);  // specialize
857     }
858 
859     @ForceInline
860     @Override
861     final
862     FloatVector fromByteArray0(byte[] a, int offset, VectorMask<Float> m) {
863         return super.fromByteArray0Template(Float512Mask.class, a, offset, (Float512Mask) m);  // specialize
864     }
865 
866     @ForceInline
867     @Override
868     final
869     FloatVector fromByteBuffer0(ByteBuffer bb, int offset) {
870         return super.fromByteBuffer0Template(bb, offset);  // specialize
871     }
872 
873     @ForceInline
874     @Override
875     final
876     FloatVector fromByteBuffer0(ByteBuffer bb, int offset, VectorMask<Float> m) {
877         return super.fromByteBuffer0Template(Float512Mask.class, bb, offset, (Float512Mask) m);  // specialize
878     }
879 
880     @ForceInline
881     @Override
882     final
883     void intoArray0(float[] a, int offset) {
884         super.intoArray0Template(a, offset);  // specialize
885     }
886 
887     @ForceInline
888     @Override
889     final
890     void intoArray0(float[] a, int offset, VectorMask<Float> m) {
891         super.intoArray0Template(Float512Mask.class, a, offset, (Float512Mask) m);
892     }
893 
894     @ForceInline
895     @Override
896     final
897     void intoArray0(float[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Float> m) {
898         super.intoArray0Template(Float512Mask.class, a, offset, indexMap, mapOffset, (Float512Mask) m);
899     }
900 
901 
902     @ForceInline
903     @Override
904     final
905     void intoByteArray0(byte[] a, int offset) {
906         super.intoByteArray0Template(a, offset);  // specialize
907     }
908 
909     @ForceInline
910     @Override
911     final
912     void intoByteArray0(byte[] a, int offset, VectorMask<Float> m) {
913         super.intoByteArray0Template(Float512Mask.class, a, offset, (Float512Mask) m);  // specialize
914     }
915 
916     @ForceInline
917     @Override
918     final
919     void intoByteBuffer0(ByteBuffer bb, int offset, VectorMask<Float> m) {
920         super.intoByteBuffer0Template(Float512Mask.class, bb, offset, (Float512Mask) m);
921     }
922 
923 
924     // End of specialized low-level memory operations.
925 
926     // ================================================
927 
928 }
< prev index next >