Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 587 for rounds (0.13 sec)

  1. 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)
  2. src/runtime/mgcpacer_test.go

    	return func() float64 {
    		sum := f()
    		for _, s := range fs {
    			sum += s()
    		}
    		return sum
    	}
    }
    
    // quantize returns a new stream that rounds f to a multiple
    // of mult at each step.
    func (f float64Stream) quantize(mult float64) float64Stream {
    	return func() float64 {
    		r := f() / mult
    		if r < 0 {
    			return math.Ceil(r) * mult
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 13:53:21 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    			}
    			expect := item.expect.DeepCopy()
    			if asDec {
    				got.AsDec()
    			}
    			if ok := got.RoundUp(item.scale); ok != item.ok {
    				t.Errorf("%s(%d,%t): unexpected ok: %t", item.in, item.scale, asDec, ok)
    			}
    			if got.Cmp(expect) != 0 {
    				t.Errorf("%s(%d,%t): unexpected round: %s vs %s", item.in, item.scale, asDec, got.String(), expect.String())
    			}
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  4. src/crypto/sha512/sha512block_amd64.s

    	COPY_YMM_AND_BSWAP(Y5, (1*32)(DI), Y9)
    	COPY_YMM_AND_BSWAP(Y6, (2*32)(DI), Y9)
    	COPY_YMM_AND_BSWAP(Y7, (3*32)(DI), Y9)
    
    	MOVQ DI, frame_INP(SP)
    
    	// schedule 64 input dwords, by doing 12 rounds of 4 each
    	MOVQ $4, frame_SRND(SP)
    
    loop1:
    	VPADDQ  (BP), Y4, Y0
    	VMOVDQU Y0, frame_YFER(SP)
    
    	MY_VPALIGNR(Y0, Y7, Y6, 8)
    
    	VPADDQ Y4, Y0, Y0
    
    	MY_VPALIGNR(Y1, Y5, Y4, 8)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. 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)
  6. src/go/constant/value.go

    	s := strconv.Quote(x.string())
    	if utf8.RuneCountInString(s) > maxLen {
    		// The string without the enclosing quotes is greater than maxLen-2 runes
    		// long. Remove the last 3 runes (including the closing '"') by keeping
    		// only the first maxLen-3 runes; then add "...".
    		i := 0
    		for n := 0; n < maxLen-3; n++ {
    			_, size := utf8.DecodeRuneInString(s[i:])
    			i += size
    		}
    		s = s[:i] + "..."
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  7. 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)
  8. src/time/time_test.go

    			return false
    		}
    
    		// To round, add d back if remainder r > d/2 or r == exactly d/2.
    		// The commented out code would round half to even instead of up,
    		// but that makes it time-zone dependent, which is a bit strange.
    		if r > int64(d)/2 || r+r == int64(d) /*&& bq.Bit(0) == 1*/ {
    			t1 = t1.Add(d)
    		}
    
    		// Check that time.Round works.
    		if rnd := t0.Round(d); rnd != t1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  9. testing/smoke-test/src/smokeTest/resources/org/gradle/play/integtest/fixtures/external/basicplayapp/conf/routes

    # Routes
    # Home page
    GET     /                           @controllers.Application.index
    
    GET     /shutdown                   @controllers.Application.shutdown
    
    # Map static resources from the /public folder to the /assets URL path
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 313 bytes
    - Viewed (0)
  10. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/play-example/conf/routes

    # Routes
    # This file defines all application routes (Higher priority routes first)
    # ~~~~
    
    # Home page
    GET     /                           @controllers.Application.index
    
    # Map static resources from the /public folder to the /assets URL path
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 323 bytes
    - Viewed (0)
Back to top