Lines Matching +defs:val +defs:src

560      * off is the offset to generate corresponding low, high in src
563 private static void mergeSort(Object[] src,
579 // Recursively sort halves of dest into src
585 mergeSort(dest, src, low, mid, -off);
586 mergeSort(dest, src, mid, high, -off);
588 // If list is already sorted, just copy from src to dest. This is an
590 if (((Comparable)src[mid-1]).compareTo(src[mid]) <= 0) {
591 System.arraycopy(src, low, dest, destLow, length);
595 // Merge sorted halves (now in src) into dest
597 if (q >= high || p < mid && ((Comparable)src[p]).compareTo(src[q])<=0)
598 dest[i] = src[p++];
600 dest[i] = src[q++];
746 * off is the offset into src corresponding to low in dest
749 private static void mergeSort(Object[] src,
763 // Recursively sort halves of dest into src
769 mergeSort(dest, src, low, mid, -off, c);
770 mergeSort(dest, src, mid, high, -off, c);
772 // If list is already sorted, just copy from src to dest. This is an
774 if (c.compare(src[mid-1], src[mid]) <= 0) {
775 System.arraycopy(src, low, dest, destLow, length);
779 // Merge sorted halves (now in src) into dest
781 if (q >= high || p < mid && c.compare(src[p], src[q]) <= 0)
782 dest[i] = src[p++];
784 dest[i] = src[q++];
1286 low = mid + 1; // Neither val is NaN, thisVal is smaller
1288 high = mid - 1; // Neither val is NaN, thisVal is larger
1377 low = mid + 1; // Neither val is NaN, thisVal is smaller
1379 high = mid - 1; // Neither val is NaN, thisVal is larger
1883 * @param val the value to be stored in all elements of the array
1885 public static void fill(long[] a, long val) {
1887 a[i] = val;
1902 * @param val the value to be stored in all elements of the array
1907 public static void fill(long[] a, int fromIndex, int toIndex, long val) {
1910 a[i] = val;
1918 * @param val the value to be stored in all elements of the array
1920 public static void fill(int[] a, int val) {
1922 a[i] = val;
1937 * @param val the value to be stored in all elements of the array
1942 public static void fill(int[] a, int fromIndex, int toIndex, int val) {
1945 a[i] = val;
1953 * @param val the value to be stored in all elements of the array
1955 public static void fill(short[] a, short val) {
1957 a[i] = val;
1972 * @param val the value to be stored in all elements of the array
1977 public static void fill(short[] a, int fromIndex, int toIndex, short val) {
1980 a[i] = val;
1988 * @param val the value to be stored in all elements of the array
1990 public static void fill(char[] a, char val) {
1992 a[i] = val;
2007 * @param val the value to be stored in all elements of the array
2012 public static void fill(char[] a, int fromIndex, int toIndex, char val) {
2015 a[i] = val;
2023 * @param val the value to be stored in all elements of the array
2025 public static void fill(byte[] a, byte val) {
2027 a[i] = val;
2042 * @param val the value to be stored in all elements of the array
2047 public static void fill(byte[] a, int fromIndex, int toIndex, byte val) {
2050 a[i] = val;
2058 * @param val the value to be stored in all elements of the array
2060 public static void fill(boolean[] a, boolean val) {
2062 a[i] = val;
2077 * @param val the value to be stored in all elements of the array
2083 boolean val) {
2086 a[i] = val;
2094 * @param val the value to be stored in all elements of the array
2096 public static void fill(double[] a, double val) {
2098 a[i] = val;
2113 * @param val the value to be stored in all elements of the array
2118 public static void fill(double[] a, int fromIndex, int toIndex,double val){
2121 a[i] = val;
2129 * @param val the value to be stored in all elements of the array
2131 public static void fill(float[] a, float val) {
2133 a[i] = val;
2148 * @param val the value to be stored in all elements of the array
2153 public static void fill(float[] a, int fromIndex, int toIndex, float val) {
2156 a[i] = val;
2164 * @param val the value to be stored in all elements of the array
2168 public static void fill(Object[] a, Object val) {
2170 a[i] = val;
2185 * @param val the value to be stored in all elements of the array
2192 public static void fill(Object[] a, int fromIndex, int toIndex, Object val) {
2195 a[i] = val;