Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ldexp (0.07 sec)

  1. src/math/ldexp.go

    package math
    
    // Ldexp is the inverse of [Frexp].
    // It returns frac × 2**exp.
    //
    // Special cases are:
    //
    //	Ldexp(±0, exp) = ±0
    //	Ldexp(±Inf, exp) = ±Inf
    //	Ldexp(NaN, exp) = NaN
    func Ldexp(frac float64, exp int) float64 {
    	if haveArchLdexp {
    		return archLdexp(frac, exp)
    	}
    	return ldexp(frac, exp)
    }
    
    func ldexp(frac float64, exp int) float64 {
    	// special cases
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/math/exp.go

    	)
    
    	r := hi - lo
    	t := r * r
    	c := r - t*(P1+t*(P2+t*(P3+t*(P4+t*P5))))
    	y := 1 - ((lo - (r*c)/(2-c)) - hi)
    	// TODO(rsc): make sure Ldexp can handle boundary k
    	return Ldexp(y, k)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. test/codegen/condmove.go

    	// arm64:"CSEL\tNE"
    	// ppc64x:"ISEL\t[$]2"
    	// wasm:"Select"
    	return a
    }
    
    //go:noinline
    func frexp(f float64) (frac float64, exp int) {
    	return 1.0, 4
    }
    
    //go:noinline
    func ldexp(frac float64, exp int) float64 {
    	return 1.0
    }
    
    // Generate a CMOV with a floating comparison and integer move.
    func cmovfloatint2(x, y float64) float64 {
    	yfr, yexp := 4.0, 5
    
    	r := x
    	for r >= y {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:57:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. src/math/big/rat.go

    				// Complete rollover 11...1 => 100...0, so shift is safe
    				mantissa >>= 1
    				exp++
    			}
    		}
    	}
    	mantissa >>= 1 // discard rounding bit.  Mantissa now scaled by 1<<Msize1.
    
    	f = float32(math.Ldexp(float64(mantissa), exp-Msize1))
    	if math.IsInf(float64(f), 0) {
    		exact = false
    	}
    	return
    }
    
    // quotToFloat64 returns the non-negative float64 value
    // nearest to the quotient a/b, using round-to-even in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  5. src/fmt/scan.go

    		}
    		m, err := strconv.Atoi(str[p+1:])
    		if err != nil {
    			// Put full string into error.
    			if e, ok := err.(*strconv.NumError); ok {
    				e.Num = str
    			}
    			s.error(err)
    		}
    		return math.Ldexp(f, m)
    	}
    	f, err := strconv.ParseFloat(str, n)
    	if err != nil {
    		s.error(err)
    	}
    	return f
    }
    
    // scanComplex converts the next token to a complex128 value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/delmarker-expiration.go

    	type delMarkerExpiration DelMarkerExpiration
    	var dexp delMarkerExpiration
    	err := dec.DecodeElement(&dexp, &start)
    	if err != nil {
    		return err
    	}
    
    	if dexp.Days <= 0 {
    		return errInvalidDaysDelMarkerExpiration
    	}
    
    	*de = DelMarkerExpiration(dexp)
    	return nil
    }
    
    // MarshalXML encodes a DelMarkerExpiration value into an XML element
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/delmarker-expiration_test.go

    			err: errInvalidDaysDelMarkerExpiration,
    		},
    	}
    
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("TestDelMarker-%d", i), func(t *testing.T) {
    			var dexp DelMarkerExpiration
    			var fail bool
    			err := xml.Unmarshal([]byte(test.xml), &dexp)
    			if test.err == nil {
    				if err != nil {
    					fail = true
    				}
    			} else {
    				if err == nil {
    					fail = true
    				}
    				if test.err.Error() != err.Error() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. doc/asm.html

    The other extensions include <code>SXTH</code> (16-bit), <code>SXTW</code> (32-bit), and <code>SXTX</code> (64-bit).
    </li>
    
    <li>
    <code>(R5, R6)</code>: Register pair for <code>LDAXP</code>/<code>LDP</code>/<code>LDXP</code>/<code>STLXP</code>/<code>STP</code>/<code>STP</code>.
    </li>
    
    </ul>
    
    <p>
    Reference: <a href="/pkg/cmd/internal/obj/arm64">Go ARM64 Assembly Instructions Reference Manual</a>
    </p>
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"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},
    		{"Ln10", Const, 0},
    		{"Ln2", Const, 0},
    		{"Log", Func, 0},
    		{"Log10", Func, 0},
    		{"Log10E", Const, 0},
    		{"Log1p", Func, 0},
    		{"Log2", 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)
  10. src/cmd/asm/internal/asm/testdata/arm64.s

    	LDARH	(R5), R7                             // a7fcdf48
    	LDAXPW	(R10), (R20, R16)                    // 54c17f88
    	LDAXP	(R25), (R30, R11)                    // 3eaf7fc8
    	LDAXRW	(R0), R2                             // 02fc5f88
    	LDXPW	(R24), (R23, R11)                    // 172f7f88
    	LDXP	(R0), (R16, R13)                     // 10347fc8
    	STLRB	R11, (R22)                           // cbfe9f08
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 94.9K bytes
    - Viewed (0)
Back to top