< prev index next >

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

Print this page

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






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






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








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







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

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

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

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










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

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














774 
775 
776     @ForceInline
777     @Override
778     final
779     FloatVector fromByteArray0(byte[] a, int offset) {
780         return super.fromByteArray0Template(a, offset);  // specialize
781     }
782 







783     @ForceInline
784     @Override
785     final
786     FloatVector fromByteBuffer0(ByteBuffer bb, int offset) {
787         return super.fromByteBuffer0Template(bb, offset);  // specialize
788     }
789 







790     @ForceInline
791     @Override
792     final
793     void intoArray0(float[] a, int offset) {
794         super.intoArray0Template(a, offset);  // specialize
795     }
796 















797     @ForceInline
798     @Override
799     final
800     void intoByteArray0(byte[] a, int offset) {
801         super.intoByteArray0Template(a, offset);  // specialize
802     }
803 















804     // End of specialized low-level memory operations.
805 
806     // ================================================
807 
808 }

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

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

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 
612             return VectorSupport.convert(VectorSupport.VECTOR_OP_CAST,
613                 this.getClass(), ETYPE, VLENGTH,
614                 species.maskType(), species.elementType(), VLENGTH,
615                 this, species,
616                 (m, s) -> s.maskFactory(m.toArray()).check(s));




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

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