Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 118 for rounds (0.13 sec)

  1. src/runtime/stack.go

    		adjustframe(&u.frame, &adjinfo)
    	}
    
    	// free old stack
    	if stackPoisonCopy != 0 {
    		fillstack(old, 0xfc)
    	}
    	stackfree(old)
    }
    
    // round x up to a power of 2.
    func round2(x int32) int32 {
    	s := uint(0)
    	for 1<<s < x {
    		s++
    	}
    	return 1 << s
    }
    
    // Called from runtime·morestack when more stack is needed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// Round to integer, float64 only.
    	// Special cases:
    	//   ±∞  → ±∞ (sign preserved)
    	//   ±0  → ±0 (sign preserved)
    	//   NaN → NaN
    	{name: "Floor", argLength: 1},       // round arg0 toward -∞
    	{name: "Ceil", argLength: 1},        // round arg0 toward +∞
    	{name: "Trunc", argLength: 1},       // round arg0 toward 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. src/runtime/map_test.go

    				break
    			}
    		}
    	}
    }
    
    // Issue 8410
    func TestMapSparseIterOrder(t *testing.T) {
    	// Run several rounds to increase the probability
    	// of failure. One is not enough.
    NextRound:
    	for round := 0; round < 10; round++ {
    		m := make(map[int]bool)
    		// Add 1000 items, remove 980.
    		for i := 0; i < 1000; i++ {
    			m[i] = true
    		}
    		for i := 20; i < 1000; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  4. src/math/big/float.go

    	}
    	if x.prec == 0 {
    		return "zero precision finite number"
    	}
    	return ""
    }
    
    // round rounds z according to z.mode to z.prec bits and sets z.acc accordingly.
    // sbit must be 0 or 1 and summarizes any "sticky bit" information one might
    // have before calling round. z's mantissa must be normalized (with the msb set)
    // or empty.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  5. src/image/gif/writer_test.go

    			t.Error(tc.filename, err)
    			continue
    		}
    		m1, err := Decode(&buf)
    		if err != nil {
    			t.Error(tc.filename, err)
    			continue
    		}
    		if m0.Bounds() != m1.Bounds() {
    			t.Errorf("%s, bounds differ: %v and %v", tc.filename, m0.Bounds(), m1.Bounds())
    			continue
    		}
    		// Compare the average delta to the tolerance level.
    		avgDelta := averageDelta(m0, m1)
    		if avgDelta > tc.tolerance {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/runtime/error.go

    	boundsSliceAlen:  "slice bounds out of range [:%x]",
    	boundsSliceAcap:  "slice bounds out of range [:%x]",
    	boundsSliceB:     "slice bounds out of range [%x:]",
    	boundsSlice3Alen: "slice bounds out of range [::%x]",
    	boundsSlice3Acap: "slice bounds out of range [::%x]",
    	boundsSlice3B:    "slice bounds out of range [:%x:]",
    	boundsSlice3C:    "slice bounds out of range [%x::]",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/image/jpeg/reader_test.go

    			t.Errorf("%s: %v", tc+".progressive.jpeg", err)
    			continue
    		}
    		if m0.Bounds() != m1.Bounds() {
    			t.Errorf("%s: bounds differ: %v and %v", tc, m0.Bounds(), m1.Bounds())
    			continue
    		}
    		// All of the video-*.jpeg files are 150x103.
    		if m0.Bounds() != image.Rect(0, 0, 150, 103) {
    			t.Errorf("%s: bad bounds: %v", tc, m0.Bounds())
    			continue
    		}
    
    		switch m0 := m0.(type) {
    		case *image.YCbCr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/Types.java

       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. src/image/gif/reader_test.go

    	copy(gif, testGIF)
    	// Make the bounds too big, just by one.
    	gif[32] = 2
    	want := "gif: frame bounds larger than image bounds"
    	try(t, gif, want)
    
    	// Make the bounds too small; does not trigger bounds
    	// check, but now there's too much data.
    	gif[32] = 0
    	want = "gif: too much image data"
    	try(t, gif, want)
    	gif[32] = 1
    
    	// Make the bounds really big, expect an error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:15:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/Types.java

       * Returns {@code ? extends X} if any of {@code bounds} is a subtype of {@code X[]}; or null
       * otherwise.
       */
      @CheckForNull
      private static Type subtypeOfComponentType(Type[] bounds) {
        for (Type bound : bounds) {
          Type componentType = getComponentType(bound);
          if (componentType != null) {
            // Only the first bound can be a class or array.
            // Bounds after the first can only be interfaces.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top