Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsNaN (0.04 sec)

  1. src/runtime/mgcscavenge.go

    	// Compute the raw output value.
    	prop := c.kp * (setpoint - input)
    	rawOutput := prop + c.errIntegral
    
    	// Clamp rawOutput into output.
    	output := rawOutput
    	if isInf(output) || isNaN(output) {
    		// The input had a large enough magnitude that either it was already
    		// overflowed, or some operation with it overflowed.
    		// Set a flag and reset. That's the safest thing to do.
    		c.reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    // of the mantissa. It will panic if the truncation results in lost information.
    func truncate64Fto32F(f float64) float32 {
    	if !isExactFloat32(f) {
    		panic("truncate64Fto32F: truncation is not exact")
    	}
    	if !math.IsNaN(f) {
    		return float32(f)
    	}
    	// NaN bit patterns aren't necessarily preserved across conversion
    	// instructions so we need to do the conversion manually.
    	b := math.Float64bits(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  3. src/math/big/float_test.go

    					defer func() {
    						if p := recover(); p != nil {
    							_ = p.(ErrNaN) // re-panic if not ErrNaN
    							errnan = true
    						}
    					}()
    					f(got, xx, yy)
    				}()
    				if math.IsNaN(z) {
    					if !errnan {
    						t.Errorf("%5g %s %5g = %5s; want ErrNaN panic", x, op, y, got)
    					}
    					continue
    				}
    				if errnan {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/mark_for_compilation_pass.cc

              {"PW",
               {"ComplexAbs", "Angle", "Conj", "Abs", "Acos", "Acosh", "Asin",
                "Atan", "Atanh", "Ceil", "Cos", "Cosh", "Sin", "Exp", "Expm1",
                "Floor", "IsFinite", "IsInf", "IsNan", "Inv", "Reciprocal", "Log",
                "Log1p", "Invert", "LogicalNot", "Ndtri", "Neg", "Rint", "Round",
                "Rsqrt", "Sigmoid", "Sign", "Sinh", "Softplus", "Softsign", "Sqrt",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (FMOVDstore [off] {sym} ptr (MTVSRD x) mem) => (MOVDstore [off] {sym} ptr x mem)
    (MOVDstore [off] {sym} ptr (MFVSRD x) mem) => (FMOVDstore [off] {sym} ptr x mem)
    
    (MTVSRD (MOVDconst [c])) && !math.IsNaN(math.Float64frombits(uint64(c))) => (FMOVDconst [math.Float64frombits(uint64(c))])
    (MFVSRD (FMOVDconst [c])) => (MOVDconst [int64(math.Float64bits(c))])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
Back to top