Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for chuge (0.11 sec)

  1. test/const.go

    	f3div2          = 3. / 2.
    	f1e3    float64 = 1e3
    )
    
    func assert(t bool, s string) {
    	if !t {
    		panic(s)
    	}
    }
    
    func ints() {
    	assert(c0 == 0, "c0")
    	assert(c1 == 1, "c1")
    	assert(chuge > chuge_1, "chuge")
    	assert(chuge_1+1 == chuge, "chuge 1")
    	assert(chuge+cm1+1 == chuge, "cm1")
    	assert(c3div2 == 1, "3/2")
    	assert(c1e3 == 1000, "c1e3 int")
    	assert(c1e3 == 1e3, "c1e3 float")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 26 23:54:29 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  2. test/index.go

    		//	negative constant
    		//	large constant
    		thisPass := 0
    		if c == "c" && (a == "a" || a == "pa" || n == "n" || i == "i64big" || i == "i64bigger" || i == "huge" || i == "fbad") {
    			if i == "huge" {
    				// Due to a detail of gc's internals,
    				// the huge constant errors happen in an
    				// earlier pass than the others and inhibits
    				// the next pass from running.
    				// So run it as a separate check.
    				thisPass = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 6.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue15039.go

    	// for truncation.
    	u := uint64(0x10001f4a9)
    	big := string(u)
    	if big != fffd {
    		panic("big != bad")
    	}
    
    	// cmd/compile used to require integer constants to fit into an "int".
    	const huge = string(1<<100)
    	if huge != fffd {
    		panic("huge != bad")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 10:28:23 UTC 2016
    - 545 bytes
    - Viewed (0)
  4. src/math/sqrt.go

    //      result is exact, bigger than 1/2ulp, or less than 1/2ulp
    //      (it will never equal to 1/2ulp).
    //      The rounding mode can be detected by checking whether
    //      huge + tiny is equal to huge, and whether huge - tiny is
    //      equal to huge for some floating point number "huge" and "tiny".
    //
    //
    // Notes:  Rounding mode detection omitted. The constants "mask", "shift",
    // and "bias" are found in src/math/bits.go
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 15 17:07:57 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  5. src/runtime/mem_linux.go

    		}
    		return
    	}
    }
    
    func sysHugePageOS(v unsafe.Pointer, n uintptr) {
    	if physHugePageSize != 0 {
    		// Round v up to a huge page boundary.
    		beg := alignUp(uintptr(v), physHugePageSize)
    		// Round v+n down to a huge page boundary.
    		end := alignDown(uintptr(v)+n, physHugePageSize)
    
    		if beg < end {
    			madvise(unsafe.Pointer(beg), end-beg, _MADV_HUGEPAGE)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. pkg/apis/core/v1/helper/helpers.go

    	return v1.ResourceName(fmt.Sprintf("%s%s", v1.ResourceHugePagesPrefix, pageSize.String()))
    }
    
    // HugePageSizeFromResourceName returns the page size for the specified huge page
    // resource name.  If the specified input is not a valid huge page resource name
    // an error is returned.
    func HugePageSizeFromResourceName(name v1.ResourceName) (resource.Quantity, error) {
    	if !IsHugePageResourceName(name) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. src/math/cmplx/huge_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Disabled for s390x because it uses assembly routines that are not
    // accurate for huge arguments.
    
    //go:build !s390x
    
    package cmplx
    
    import (
    	"testing"
    )
    
    func TestTanHuge(t *testing.T) {
    	for i, x := range hugeIn {
    		if f := Tan(x); !cSoclose(tanHuge[i], f, 3e-15) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 496 bytes
    - Viewed (0)
  8. src/runtime/mgcscavenge.go

    			hugePageBelow := uint(alignDown(uintptr(start), pagesPerHugePage))
    
    			if hugePageBelow >= end-run {
    				// We're in danger of breaking apart a huge page since start+size crosses
    				// a huge page boundary and rounding down start to the nearest huge
    				// page boundary is included in the full run we found. Include the entire
    				// huge page in the bound by rounding down to the huge page size.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/bigstack_windows.c

    typedef void callback(char*);
    
    // Allocate a stack that's much larger than the default.
    static const int STACK_SIZE = 16<<20;
    
    static callback *bigStackCallback;
    
    static void useStack(int bytes) {
    	// Windows doesn't like huge frames, so we grow the stack 64k at a time.
    	char x[64<<10];
    	if (bytes < sizeof x) {
    		bigStackCallback(x);
    	} else {
    		useStack(bytes - sizeof x);
    	}
    }
    
    static DWORD WINAPI threadEntry(LPVOID lpParam) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 02 15:18:26 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  10. src/regexp/testdata/README

    
    RE2 Test Files
    
    re2-exhaustive.txt.bz2 and re2-search.txt are built by running
    'make log' in the RE2 distribution https://github.com/google/re2/
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 27 20:18:25 UTC 2015
    - 957 bytes
    - Viewed (0)
Back to top