Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 587 for rounds (0.19 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/cgo/internal/testsanitizers/testdata/tsan14.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // This program failed when run under the C/C++ ThreadSanitizer.
    //
    // cgocallback on a new thread calls into runtime.needm -> _cgo_getstackbound
    // to update gp.stack.lo with the stack bounds. If the G itself is passed to
    // _cgo_getstackbound, then writes to the same G can be seen on multiple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testsanitizers/testdata/asan4_fail.go

    // Copyright 2021 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
    
    /*
    #include <stdlib.h>
    #include <stdio.h>
    
    void test(int* a) {
    	// Access Go pointer out of bounds.
    	a[3] = 300;          // BOOM
    	// We shouldn't get here; asan should stop us first.
    	printf("a[3]=%d\n", a[3]);
    }*/
    import "C"
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 496 bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_windows_386.c

    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	// minit queries stack bounds from the OS.
    
    	/*
    	 * Set specific keys in thread local storage.
    	 */
    	asm volatile (
    		"movl %0, %%fs:0(%1)\n"	// MOVL tls0, 0(tls_g)(FS)
    		"movl %%fs:0(%1), %%eax\n"	// MOVL 0(tls_g)(FS), tmp
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:58 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/crypto/internal/bigmod/nat.go

    func (x *Nat) Equal(y *Nat) choice {
    	// Eliminate bounds checks in the loop.
    	size := len(x.limbs)
    	xLimbs := x.limbs[:size]
    	yLimbs := y.limbs[:size]
    
    	equal := yes
    	for i := 0; i < size; i++ {
    		equal &= ctEq(xLimbs[i], yLimbs[i])
    	}
    	return equal
    }
    
    // IsZero returns 1 if x == 0, and 0 otherwise.
    func (x *Nat) IsZero() choice {
    	// Eliminate bounds checks in the loop.
    	size := len(x.limbs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/annotations/KtEmptyAnnotationsList.kt

            return Collections.emptyIterator()
        }
    
        override fun get(index: Int): KaAnnotation = withValidityAssertion {
            throw IndexOutOfBoundsException("Index $index out of bounds")
        }
    
        override fun contains(classId: ClassId): Boolean = withValidityAssertion {
            return false
        }
    
        override fun get(classId: ClassId): List<KaAnnotation> = withValidityAssertion {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top