Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for fracu (0.04 sec)

  1. src/strconv/ftoaryu.go

    	dl, fracl := dl>>extra, dl&extraMask
    	dc, fracc := dc>>extra, dc&extraMask
    	du, fracu := du>>extra, du&extraMask
    	// Is it allowed to use 'du' as a result?
    	// It is always allowed when it is truncated, but also
    	// if it is exact and the original binary mantissa is even
    	// When disallowed, we can subtract 1.
    	uok := !du0 || fracu > 0
    	if du0 && fracu == 0 {
    		uok = mant&1 == 0
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td

    // The pattern matched executes the following computation:
    // frac = x - floor(x)
    // to_even = (floor(x) - 2 * floor(0.5 * x)) == 1
    // if frac > 0.5 || (frac == 0.5 && to_even)
    //   return floor(x) + 1
    // else
    //   return floor(x)
    def : Pat<(MHLO_SelectOp
                (MHLO_OrOp
                  (MHLO_CompareOp (MHLO_SubtractOp:$frac
                                   $input,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 03 08:58:22 UTC 2024
    - 34K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/float_test.go

    		if x := math.Float32bits(math.Float32frombits(negOne)); x != negOne {
    			t.Errorf("got %#x, want %#x", x, negOne)
    		}
    	}
    	{
    		const frac = uint32(0x3fc00000) // +1.5
    		if x := math.Float32bits(math.Float32frombits(frac)); x != frac {
    			t.Errorf("got %#x, want %#x", x, frac)
    		}
    	}
    	{
    		const negFrac = uint32(0xbfc00000) // -1.5
    		if x := math.Float32bits(math.Float32frombits(negFrac)); x != negFrac {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    		if math.IsNaN(x) || math.IsInf(x, 0) {
    			continue
    		}
    		x = math.Abs(x)
    		if x < 0x1p-1000 { // avoid underflow patterns
    			continue
    		}
    		frac, _ := math.Frexp(x) // 52 bits of randomness
    		return frac*2 - 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    		if e.Weight > 0 {
    			total += abs64(e.Weight)
    		}
    	}
    	if total != 0 {
    		for _, e := range edges {
    			frac := float64(abs64(e.Weight)) / float64(total)
    			score += -frac * math.Log2(frac)
    		}
    		if self > 0 {
    			frac := float64(abs64(self)) / float64(total)
    			score += -frac * math.Log2(frac)
    		}
    	}
    	return score
    }
    
    // NodeOrder sets the ordering for a Sort operation
    type NodeOrder int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  6. src/math/big/natconv_test.go

    		}
    		if err != nil {
    			t.Errorf("scan%+v\n\tgot error = %s", a, err)
    		}
    	}
    }
    
    var natScanTests = []struct {
    	s     string // string to be scanned
    	base  int    // input base
    	frac  bool   // fraction ok
    	x     nat    // expected nat
    	b     int    // expected base
    	count int    // expected digit count
    	err   error  // expected error
    	next  rune   // next character (or 0, if at EOF)
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 16.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Quantiles.java

     * (unless there are {@link Double#NaN NaN} values, see below); otherwise, the result is the average
     * of the values which would appear at the indexes floor(x) and ceil(x) weighted by (1-frac(x)) and
     * frac(x) respectively. This is the same definition as used by Excel and by S, it is the Type 7
     * definition in <a
     * href="http://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html">R</a>, and it is
     * described by <a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/math/Quantiles.java

     * (unless there are {@link Double#NaN NaN} values, see below); otherwise, the result is the average
     * of the values which would appear at the indexes floor(x) and ceil(x) weighted by (1-frac(x)) and
     * frac(x) respectively. This is the same definition as used by Excel and by S, it is the Type 7
     * definition in <a
     * href="http://stat.ethz.ch/R-manual/R-devel/library/stats/html/quantile.html">R</a>, and it is
     * described by <a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 29.9K bytes
    - Viewed (0)
Back to top