Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ilogb (0.13 sec)

  1. src/math/logb.go

    //
    // Special cases are:
    //
    //	Ilogb(±Inf) = MaxInt32
    //	Ilogb(0) = MinInt32
    //	Ilogb(NaN) = MaxInt32
    func Ilogb(x float64) int {
    	// special cases
    	switch {
    	case x == 0:
    		return MinInt32
    	case IsNaN(x):
    		return MaxInt32
    	case IsInf(x, 0):
    		return MaxInt32
    	}
    	return ilogb(x)
    }
    
    // ilogb returns the binary exponent of x. It assumes x is finite and
    // non-zero.
    func ilogb(x float64) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 19:46:45 UTC 2022
    - 1021 bytes
    - Viewed (0)
  2. src/math/all_test.go

    	for i := 0; i < len(vf); i++ {
    		if f := Logb(vf[i]); logb[i] != f {
    			t.Errorf("Logb(%g) = %g, want %g", vf[i], f, logb[i])
    		}
    	}
    	for i := 0; i < len(vflogbSC); i++ {
    		if f := Logb(vflogbSC[i]); !alike(logbSC[i], f) {
    			t.Errorf("Logb(%g) = %g, want %g", vflogbSC[i], f, logbSC[i])
    		}
    	}
    	for i := 0; i < len(vffrexpBC); i++ {
    		if f := Logb(vffrexpBC[i]); !alike(logbBC[i], f) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Float32frombits", Func, 0},
    		{"Float64bits", Func, 0},
    		{"Float64frombits", Func, 0},
    		{"Floor", Func, 0},
    		{"Frexp", Func, 0},
    		{"Gamma", Func, 0},
    		{"Hypot", Func, 0},
    		{"Ilogb", Func, 0},
    		{"Inf", Func, 0},
    		{"IsInf", Func, 0},
    		{"IsNaN", Func, 0},
    		{"J0", Func, 0},
    		{"J1", Func, 0},
    		{"Jn", Func, 0},
    		{"Ldexp", Func, 0},
    		{"Lgamma", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top