< prev index next >

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

Print this page
rev 55237 : javadoc changes


 786     @Override
 787     @ForceInline
 788     public long maxAll() {
 789         return (long) VectorIntrinsics.reductionCoerced(
 790             VECTOR_OP_MAX, Long64Vector.class, long.class, LENGTH,
 791             this,
 792             v -> (long) v.rOp(Long.MIN_VALUE , (i, a, b) -> (long) Math.max(a, b)));
 793     }
 794 
 795     @Override
 796     @ForceInline
 797     public long mulAll() {
 798         return (long) VectorIntrinsics.reductionCoerced(
 799             VECTOR_OP_MUL, Long64Vector.class, long.class, LENGTH,
 800             this,
 801             v -> (long) v.rOp((long) 1, (i, a, b) -> (long) (a * b)));
 802     }
 803 
 804     @Override
 805     @ForceInline
 806     public long subAll() {
 807         return (long) VectorIntrinsics.reductionCoerced(
 808             VECTOR_OP_SUB, Long64Vector.class, long.class, LENGTH,
 809             this,
 810             v -> (long) v.rOp((long) 0, (i, a, b) -> (long) (a - b)));
 811     }
 812 
 813     @Override
 814     @ForceInline
 815     public long orAll() {
 816         return (long) VectorIntrinsics.reductionCoerced(
 817             VECTOR_OP_OR, Long64Vector.class, long.class, LENGTH,
 818             this,
 819             v -> (long) v.rOp((long) 0, (i, a, b) -> (long) (a | b)));
 820     }
 821 
 822     @Override
 823     @ForceInline
 824     public long orAll(Mask<Long> m) {
 825         return blend(SPECIES.broadcast((long) 0), m).orAll();
 826     }
 827 
 828     @Override
 829     @ForceInline
 830     public long xorAll() {
 831         return (long) VectorIntrinsics.reductionCoerced(
 832             VECTOR_OP_XOR, Long64Vector.class, long.class, LENGTH,
 833             this,
 834             v -> (long) v.rOp((long) 0, (i, a, b) -> (long) (a ^ b)));
 835     }
 836 
 837     @Override
 838     @ForceInline
 839     public long xorAll(Mask<Long> m) {
 840         return blend(SPECIES.broadcast((long) 0), m).xorAll();
 841     }
 842 
 843 
 844     @Override
 845     @ForceInline
 846     public long addAll(Mask<Long> m) {
 847         return blend(SPECIES.broadcast((long) 0), m).addAll();
 848     }
 849 
 850     @Override
 851     @ForceInline
 852     public long subAll(Mask<Long> m) {
 853         return blend(SPECIES.broadcast((long) 0), m).subAll();
 854     }
 855 
 856     @Override
 857     @ForceInline
 858     public long mulAll(Mask<Long> m) {
 859         return blend(SPECIES.broadcast((long) 1), m).mulAll();
 860     }
 861 
 862     @Override
 863     @ForceInline
 864     public long minAll(Mask<Long> m) {
 865         return blend(SPECIES.broadcast(Long.MAX_VALUE), m).minAll();
 866     }
 867 
 868     @Override
 869     @ForceInline
 870     public long maxAll(Mask<Long> m) {
 871         return blend(SPECIES.broadcast(Long.MIN_VALUE), m).maxAll();
 872     }
 873 




 786     @Override
 787     @ForceInline
 788     public long maxAll() {
 789         return (long) VectorIntrinsics.reductionCoerced(
 790             VECTOR_OP_MAX, Long64Vector.class, long.class, LENGTH,
 791             this,
 792             v -> (long) v.rOp(Long.MIN_VALUE , (i, a, b) -> (long) Math.max(a, b)));
 793     }
 794 
 795     @Override
 796     @ForceInline
 797     public long mulAll() {
 798         return (long) VectorIntrinsics.reductionCoerced(
 799             VECTOR_OP_MUL, Long64Vector.class, long.class, LENGTH,
 800             this,
 801             v -> (long) v.rOp((long) 1, (i, a, b) -> (long) (a * b)));
 802     }
 803 
 804     @Override
 805     @ForceInline









 806     public long orAll() {
 807         return (long) VectorIntrinsics.reductionCoerced(
 808             VECTOR_OP_OR, Long64Vector.class, long.class, LENGTH,
 809             this,
 810             v -> (long) v.rOp((long) 0, (i, a, b) -> (long) (a | b)));
 811     }
 812 
 813     @Override
 814     @ForceInline
 815     public long orAll(Mask<Long> m) {
 816         return blend(SPECIES.broadcast((long) 0), m).orAll();
 817     }
 818 
 819     @Override
 820     @ForceInline
 821     public long xorAll() {
 822         return (long) VectorIntrinsics.reductionCoerced(
 823             VECTOR_OP_XOR, Long64Vector.class, long.class, LENGTH,
 824             this,
 825             v -> (long) v.rOp((long) 0, (i, a, b) -> (long) (a ^ b)));
 826     }
 827 
 828     @Override
 829     @ForceInline
 830     public long xorAll(Mask<Long> m) {
 831         return blend(SPECIES.broadcast((long) 0), m).xorAll();
 832     }
 833 
 834 
 835     @Override
 836     @ForceInline
 837     public long addAll(Mask<Long> m) {
 838         return blend(SPECIES.broadcast((long) 0), m).addAll();






 839     }
 840 
 841     @Override
 842     @ForceInline
 843     public long mulAll(Mask<Long> m) {
 844         return blend(SPECIES.broadcast((long) 1), m).mulAll();
 845     }
 846 
 847     @Override
 848     @ForceInline
 849     public long minAll(Mask<Long> m) {
 850         return blend(SPECIES.broadcast(Long.MAX_VALUE), m).minAll();
 851     }
 852 
 853     @Override
 854     @ForceInline
 855     public long maxAll(Mask<Long> m) {
 856         return blend(SPECIES.broadcast(Long.MIN_VALUE), m).maxAll();
 857     }
 858 


< prev index next >