Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for compareFloat32Slices (0.16 sec)

  1. src/math/rand/rand_test.go

    		return len(s1) + 1
    	}
    	for i := range s1 {
    		if s1[i] != s2[i] {
    			return i
    		}
    	}
    	return -1
    }
    
    // compareFloat32Slices returns the first index where the two slices
    // disagree, or <0 if the lengths are the same and all elements
    // are identical.
    func compareFloat32Slices(s1, s2 []float32) int {
    	if len(s1) != len(s2) {
    		if len(s1) > len(s2) {
    			return len(s2) + 1
    		}
    		return len(s1) + 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. src/math/rand/v2/rand_test.go

    		return len(s1) + 1
    	}
    	for i := range s1 {
    		if s1[i] != s2[i] {
    			return i
    		}
    	}
    	return -1
    }
    
    // compareFloat32Slices returns the first index where the two slices
    // disagree, or <0 if the lengths are the same and all elements
    // are identical.
    func compareFloat32Slices(s1, s2 []float32) int {
    	if len(s1) != len(s2) {
    		if len(s1) > len(s2) {
    			return len(s2) + 1
    		}
    		return len(s1) + 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top