Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 275 for rounds (0.18 sec)

  1. pkg/generated/openapi/openapi_test.go

    	dummyRef := func(name string) spec.Ref { return spec.MustCreateRef("#/definitions/dummy") }
    	for name, value := range GetOpenAPIDefinitions(dummyRef) {
    		t.Run(name, func(t *testing.T) {
    			// TODO(kubernetes/gengo#193): We currently round-trip ints to floats.
    			value.Schema = *handler.PruneDefaultsSchema(&value.Schema)
    			data, err := json.Marshal(value.Schema)
    			if err != nil {
    				t.Error(err)
    				return
    			}
    
    			roundTripped := spec.Schema{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. src/image/ycbcr_test.go

    			}
    		}
    		if testing.Short() {
    			break
    		}
    	}
    }
    
    func testYCbCr(t *testing.T, r Rectangle, subsampleRatio YCbCrSubsampleRatio, delta Point) {
    	// Create a YCbCr image m, whose bounds are r translated by (delta.X, delta.Y).
    	r1 := r.Add(delta)
    	m := NewYCbCr(r1, subsampleRatio)
    
    	// Test that the image buffer is reasonably small even if (delta.X, delta.Y) is far from the origin.
    	if len(m.Y) > 100*100 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 26 00:14:16 UTC 2015
    - 3.3K bytes
    - Viewed (0)
  3. src/image/internal/imageutil/gen.go

    // successful. If it returns false, no dst pixels were changed.
    //
    // This function assumes that r is entirely within dst's bounds and the
    // translation of r from dst coordinate space to src coordinate space is
    // entirely within src's bounds.
    func DrawYCbCr(dst *image.RGBA, r image.Rectangle, src *image.YCbCr, sp image.Point) (ok bool) {
    	// This function exists in the image/internal/imageutil package because it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  4. src/runtime/cgo/gcc_libinit.c

    // called by rt0_go in the runtime package.
    void _cgo_set_stacklo(G *g, uintptr *pbounds)
    {
    	uintptr bounds[2];
    
    	// pbounds can be passed in by the caller; see gcc_linux_amd64.c.
    	if (pbounds == NULL) {
    		pbounds = &bounds[0];
    	}
    
    	x_cgo_getstackbound(pbounds);
    
    	g->stacklo = *pbounds;
    
    	// Sanity check the results now, rather than getting a
    	// morestack on g0 crash.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. test/fixedbugs/issue12944.go

    // errorcheck
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "unsafe"
    
    const (
    	_ = unsafe.Sizeof([0]byte{}[0]) // ERROR "out of bounds"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 15 20:56:58 UTC 2015
    - 274 bytes
    - Viewed (0)
  6. test/fixedbugs/issue33275_run.go

    // run
    
    //go:build !nacl && !js && !wasip1 && !gccgo
    
    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Make sure we don't get an index out of bounds error
    // while trying to print a map that is concurrently modified.
    // The runtime might complain (throw) if it detects the modification,
    // so we have to run the test as a subprocess.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 717 bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/view/common/help.jsp

    		between the lower and upper bound specified by the Range Query. Range
    		Queries can be inclusive or exclusive of the upper and lower bounds.
    		If you want to find documents whose content_length fields have values
    		between 1000 and 10000, inclusive, you can enter:
    		<pre>content_length:[1000 TO 10000]</pre>
    		If you want to exclude the upper and lower bounds, use "{}".
    	</dd>
    	<dt>Boost</dt>
    	<dd>
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Feb 26 14:01:31 UTC 2018
    - 2.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue22083.go

    func main() {
    	defer func() {
    		e := recover()
    		if e == nil {
    			panic("bounds check didn't fail")
    		}
    		stk := string(debug.Stack())
    		if !strings.Contains(stk, "issue22083.go:40") {
    			panic("wrong stack trace: " + stk)
    		}
    	}()
    	foo := Wrapper{a: []int{0, 1, 2}}
    	_ = foo.Get(0)
    	_ = foo.Get(1)
    	_ = foo.Get(2)
    	_ = foo.Get(3) // stack trace should mention this line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 09:27:37 UTC 2017
    - 791 bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/DoubleUtils.java

        }
    
        /*
         * We need the top SIGNIFICAND_BITS + 1 bits, including the "implicit" one bit. To make rounding
         * easier, we pick out the top SIGNIFICAND_BITS + 2 bits, so we have one to help us round up or
         * down. twiceSignifFloor will contain the top SIGNIFICAND_BITS + 2 bits, and signifFloor the
         * top SIGNIFICAND_BITS + 1.
         *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/checkbce.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ssa
    
    import "cmd/compile/internal/logopt"
    
    // checkbce prints all bounds checks that are present in the function.
    // Useful to find regressions. checkbce is only activated when with
    // corresponding debug options, so it's off by default.
    // See test/checkbce.go
    func checkbce(f *Func) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 10 17:12:35 UTC 2019
    - 956 bytes
    - Viewed (0)
Back to top