Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 722 for rounds (0.15 sec)

  1. 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)
  2. src/encoding/binary/binary.go

    var BigEndian bigEndian
    
    type littleEndian struct{}
    
    func (littleEndian) Uint16(b []byte) uint16 {
    	_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
    	return uint16(b[0]) | uint16(b[1])<<8
    }
    
    func (littleEndian) PutUint16(b []byte, v uint16) {
    	_ = b[1] // early bounds check to guarantee safety of writes below
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/TypeResolver.java

          if (type == null) {
            Type[] bounds = var.getBounds();
            if (bounds.length == 0) {
              return var;
            }
            Type[] resolvedBounds = new TypeResolver(forDependants).resolveTypes(bounds);
            /*
             * We'd like to simply create our own TypeVariable with the newly resolved bounds. There's
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/math/big/decimal_test.go

    		}
    
    		d.init(x, 0)
    		d.round(test.n)
    		if got := d.String(); got != test.even {
    			t.Errorf("round(%d, %d) = %s; want %s", test.x, test.n, got, test.even)
    		}
    
    		d.init(x, 0)
    		d.roundUp(test.n)
    		if got := d.String(); got != test.up {
    			t.Errorf("roundUp(%d, %d) = %s; want %s", test.x, test.n, got, test.up)
    		}
    	}
    }
    
    var sink string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 05:54:35 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  9. src/math/rand/v2/pcg_test.go

    	}
    
    	q := PCG{}
    	if err := q.UnmarshalBinary([]byte(want)); err != nil {
    		t.Fatalf("UnmarshalBinary(): %v", err)
    	}
    	if q != p {
    		t.Fatalf("after round trip, q = %#x, but p = %#x", q, p)
    	}
    
    	qu := q.Uint64()
    	pu := p.Uint64()
    	if qu != pu {
    		t.Errorf("after round trip, q.Uint64() = %#x, but p.Uint64() = %#x", qu, pu)
    	}
    }
    
    func TestPCG(t *testing.T) {
    	p := NewPCG(1, 2)
    	want := []uint64{
    		0xc4f5a58656eef510,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:23 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. subprojects/core/src/testFixtures/groovy/org/gradle/test/fixtures/VersionCoverage.groovy

        }
    
    
        /**
         * Filters the given versions to those that are between the given closed bounds.
         *
         * @param versionsToFilter the versions to filter
         * @param from the lower bound, inclusive
         * @param to the upper bound, inclusive
         */
        static Set<String> versionsBetweenInclusive(Collection<String> versionsToFilter, String from, String to) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 06 16:42:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top