Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for ROUND2 (0.56 sec)

  1. src/runtime/runtime1.go

    	}
    
    	*(*uint32)(unsafe.Pointer(&i1)) = ^uint32(1)
    	if i == i1 {
    		throw("float32nan2")
    	}
    	if i == i1 {
    		throw("float32nan3")
    	}
    
    	testAtomic64()
    
    	if fixedStack != round2(fixedStack) {
    		throw("FixedStack is not power-of-2")
    	}
    
    	if !checkASM() {
    		throw("assembly checks failed")
    	}
    }
    
    type dbgVar struct {
    	name   string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/runtime/stack.go

    		adjustframe(&u.frame, &adjinfo)
    	}
    
    	// free old stack
    	if stackPoisonCopy != 0 {
    		fillstack(old, 0xfc)
    	}
    	stackfree(old)
    }
    
    // round x up to a power of 2.
    func round2(x int32) int32 {
    	s := uint(0)
    	for 1<<s < x {
    		s++
    	}
    	return 1 << s
    }
    
    // Called from runtime·morestack when more stack is needed.
    // Allocate larger stack and relocate to new stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	execLock.unlock()
    }
    
    // Allocate a new g, with a stack big enough for stacksize bytes.
    func malg(stacksize int32) *g {
    	newg := new(g)
    	if stacksize >= 0 {
    		stacksize = round2(stackSystem + stacksize)
    		systemstack(func() {
    			newg.stack = stackalloc(uint32(stacksize))
    		})
    		newg.stackguard0 = newg.stack.lo + stackGuard
    		newg.stackguard1 = ^uintptr(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top