Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Implementation (0.12 sec)

  1. pkg/config/validation/validation.go

    	return
    }
    
    // Copied from https://github.com/envoyproxy/envoy/blob/5451efd9b8f8a444431197050e45ba974ed4e9d8/source/common/common/utility.cc#L601-L615
    // to ensure we 100% match Envoy's implementation
    func isPrime(x uint64) bool {
    	if x != 0 && x < 4 {
    		return true // eliminates special-casing 2.
    	} else if (x & 1) == 0 {
    		return false // eliminates even numbers >2.
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top