Lines Matching defs:at

666         BiFunction<ArrayType<?>, Integer, Object> constructor = (at, s) -> {
667 Object a = at.construct(s);
669 at.set(a, x, x % 8);
674 BiFunction<ArrayType<?>, Object, Object> cloner = (at, a) ->
675 constructor.apply(at, Array.getLength(a));
692 BiFunction<ArrayType<?>, Integer, Object> canonicalNaNs = (at, s) -> {
693 Object a = at.construct(s);
695 at.set(a, x, canonicalNan);
700 BiFunction<ArrayType<?>, Object, Object> nonCanonicalNaNs = (at, a) -> {
702 Object ac = at.construct(s);
704 at.set(ac, x, nonCanonicalNan);
709 BiFunction<ArrayType<?>, Object, Object> halfNonCanonicalNaNs = (at, a) -> {
711 Object ac = at.construct(s);
713 at.set(ac, x, nonCanonicalNan);
716 at.set(ac, x, 1);
731 (at, s) -> {
732 Object a = at.construct(s);
734 at.set(a, x, null);
743 (at, s) -> {
744 Object a = at.construct(s);
747 at.set(a, x, v == 0 ? null : v);
766 (at, s) -> {
767 Integer[] a = (Integer[]) at.construct(s);
777 (at, s) -> {
778 Integer[] a = (Integer[]) at.construct(s);
788 (at, s) -> {
789 Integer[] a = (Integer[]) at.construct(s);
801 BiFunction<ArrayType<?>, Integer, Object> constructor = (at, s) -> {
802 Object a = at.construct(s);
804 at.set(a, x, 1);
836 void testArrayType(ArrayType<?> at,
839 int n = arraySizeFor(at.componentType);
842 Object a = constructor.apply(at, s);
843 Object b = cloner.apply(at, a);
853 Object anr = at.copyOf(a, aFrom, aTo);
854 Object bnr = at.copyOf(b, bFrom, bTo);
856 boolean eq = isEqual(at, a, aFrom, aTo, b, bFrom, bTo);
857 Assert.assertEquals(at.equals(a, aFrom, aTo, b, bFrom, bTo), eq);
858 Assert.assertEquals(at.equals(b, bFrom, bTo, a, aFrom, aTo), eq);
859 Assert.assertEquals(at.equals(anr, bnr), eq);
860 Assert.assertEquals(at.equals(bnr, anr), eq);
862 Assert.assertEquals(at.compare(a, aFrom, aTo, b, bFrom, bTo), 0);
863 Assert.assertEquals(at.compare(b, bFrom, bTo, a, aFrom, aTo), 0);
864 Assert.assertEquals(at.compare(anr, bnr), 0);
865 Assert.assertEquals(at.compare(bnr, anr), 0);
867 Assert.assertEquals(at.mismatch(a, aFrom, aTo, b, bFrom, bTo), -1);
868 Assert.assertEquals(at.mismatch(b, bFrom, bTo, a, aFrom, aTo), -1);
869 Assert.assertEquals(at.mismatch(anr, bnr), -1);
870 Assert.assertEquals(at.mismatch(bnr, anr), -1);
873 int aCb = at.compare(a, aFrom, aTo, b, bFrom, bTo);
874 int bCa = at.compare(b, bFrom, bTo, a, aFrom, aTo);
878 int anrCbnr = at.compare(anr, bnr);
879 int bnrCanr = at.compare(bnr, anr);
884 int aMb = at.mismatch(a, aFrom, aTo, b, bFrom, bTo);
885 int bMa = at.mismatch(b, bFrom, bTo, a, aFrom, aTo);
886 int anrMbnr = at.mismatch(anr, bnr);
887 int bnrManr = at.mismatch(bnr, anr);
897 Assert.assertTrue(at.equals(a, aFrom, aFrom + aMb, b, bFrom, bFrom + aMb));
900 Assert.assertFalse(isEqual(at, a, aFrom + aMb, b, bFrom + aMb));
908 Object ac = at.copyOf(a);
910 at.set(ac, i, -1);
912 Object acnr = at.copyOf(ac, aFrom, aTo);
913 Object anr = at.copyOf(a, aFrom, aTo);
915 Assert.assertFalse(at.equals(ac, aFrom, aTo, a, aFrom, aTo));
916 Assert.assertFalse(at.equals(acnr, anr));
918 int acCa = at.compare(ac, aFrom, aTo, a, aFrom, aTo);
919 int aCac = at.compare(a, aFrom, aTo, ac, aFrom, aTo);
923 int acnrCanr = at.compare(acnr, anr);
924 int anrCacnr = at.compare(anr, acnr);
929 int acMa = at.mismatch(ac, aFrom, aTo, a, aFrom, aTo);
930 int aMac = at.mismatch(a, aFrom, aTo, ac, aFrom, aTo);
934 int acnrManr = at.mismatch(acnr, anr);
935 int anrMacnr = at.mismatch(anr, acnr);
945 static boolean isEqual(ArrayType<?> at, Object a, int aFromIndex, int aToIndex,
953 Object av = at.get(a, aFromIndex++);
954 Object bv = at.get(b, bFromIndex++);
961 static boolean isEqual(ArrayType<?> at, Object a, int aFrom, Object b, int bFrom) {
962 Object av = at.get(a, aFrom);
963 Object bv = at.get(b, bFrom);