Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for timediv (0.11 sec)

  1. src/runtime/runtime_test.go

    			if ret64 != int64(int32(ret64)) {
    				// Simulate timediv overflow value.
    				ret64 = 1<<31 - 1
    				rem64 = 0
    			}
    			if ret64 != int64(tc.ret) {
    				t.Errorf("%d / %d got ret %d rem %d want ret %d rem %d", tc.num, tc.div, ret64, rem64, tc.ret, tc.rem)
    			}
    
    			var rem int32
    			ret := Timediv(tc.num, tc.div, &rem)
    			if ret != tc.ret || rem != tc.rem {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/runtime/runtime1.go

    	}
    	if unsafe.Offsetof(y1.y) != 1 {
    		throw("bad offsetof y1.y")
    	}
    	if unsafe.Sizeof(y1) != 2 {
    		throw("bad unsafe.Sizeof y1")
    	}
    
    	if timediv(12345*1000000000+54321, 1000000000, &e) != 12345 || e != 54321 {
    		throw("bad timediv")
    	}
    
    	var z uint32
    	z = 1
    	if !atomic.Cas(&z, 1, 2) {
    		throw("cas1")
    	}
    	if z != 2 {
    		throw("cas2")
    	}
    
    	z = 4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. src/runtime/os_plan9.go

    	// the OS clean up threads.
    	throw("exitThread")
    }
    
    //go:nosplit
    func semacreate(mp *m) {
    }
    
    //go:nosplit
    func semasleep(ns int64) int {
    	gp := getg()
    	if ns >= 0 {
    		ms := timediv(ns, 1000000, nil)
    		if ms == 0 {
    			ms = 1
    		}
    		ret := plan9_tsemacquire(&gp.m.waitsemacount, ms)
    		if ret == 1 {
    			return 0 // success
    		}
    		return -1 // timeout or interrupted
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/runtime/export_test.go

    		escapeSink = x
    	}
    	return x
    }
    
    // Acquirem blocks preemption.
    func Acquirem() {
    	acquirem()
    }
    
    func Releasem() {
    	releasem(getg().m)
    }
    
    var Timediv = timediv
    
    type PIController struct {
    	piController
    }
    
    func NewPIController(kp, ti, tt, min, max float64) *PIController {
    	return &PIController{piController{
    		kp:  kp,
    		ti:  ti,
    		tt:  tt,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  5. src/runtime/os_windows.go

    	)
    
    	var result uintptr
    	if ns < 0 {
    		result = stdcall2(_WaitForSingleObject, getg().m.waitsema, uintptr(_INFINITE))
    	} else {
    		start := nanotime()
    		elapsed := int64(0)
    		for {
    			ms := int64(timediv(ns-elapsed, 1000000, nil))
    			if ms == 0 {
    				ms = 1
    			}
    			result = stdcall4(_WaitForMultipleObjects, 2,
    				uintptr(unsafe.Pointer(&[2]uintptr{getg().m.waitsema, getg().m.resumesema})),
    				0, uintptr(ms))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  6. src/runtime/os_linux.go

    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func timer_create(clockid int32, sevp *sigevent, timerid *int32) int32
    
    //go:noescape
    func timer_settime(timerid int32, flags int32, new, old *itimerspec) int32
    
    //go:noescape
    func timer_delete(timerid int32) int32
    
    //go:noescape
    func rtsigprocmask(how int32, new, old *sigset, size int32)
    
    //go:nosplit
    //go:nowritebarrierrec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  7. src/runtime/sys_linux_riscv64.s

    // func timer_create(clockid int32, sevp *sigevent, timerid *int32) int32
    TEXT runtime·timer_create(SB),NOSPLIT,$0-28
    	MOVW	clockid+0(FP), A0
    	MOV	sevp+8(FP), A1
    	MOV	timerid+16(FP), A2
    	MOV	$SYS_timer_create, A7
    	ECALL
    	MOVW	A0, ret+24(FP)
    	RET
    
    // func timer_settime(timerid int32, flags int32, new, old *itimerspec) int32
    TEXT runtime·timer_settime(SB),NOSPLIT,$0-28
    	MOVW	timerid+0(FP), A0
    	MOVW	flags+4(FP), A1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy

            outputLines[1] == "Timed out task ':block' has not yet stopped."
            outputLines[outputLines.size() - 1] == "Timed out task ':block' has stopped."
    
            and:
            def logging = taskLogging(":block")
            logging[0] == "Requesting stop of task ':block' as it has exceeded its configured timeout of 500ms."
            logging[1] == "Timed out task ':block' has not yet stopped."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/runtime/sys_linux_loong64.s

    // func timer_create(clockid int32, sevp *sigevent, timerid *int32) int32
    TEXT runtime·timer_create(SB),NOSPLIT,$0-28
    	MOVW	clockid+0(FP), R4
    	MOVV	sevp+8(FP), R5
    	MOVV	timerid+16(FP), R6
    	MOVV	$SYS_timer_create, R11
    	SYSCALL
    	MOVW	R4, ret+24(FP)
    	RET
    
    // func timer_settime(timerid int32, flags int32, new, old *itimerspec) int32
    TEXT runtime·timer_settime(SB),NOSPLIT,$0-28
    	MOVW	timerid+0(FP), R4
    	MOVW	flags+4(FP), R5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        }
      }
    
      private Outcome doCall() {
        boolean guarded = isGuarded(method);
        boolean timed = isTimed(method);
        Object[] arguments = new Object[(guarded ? 1 : 0) + (timed ? 2 : 0)];
        if (guarded) {
          arguments[0] = guard;
        }
        if (timed) {
          arguments[arguments.length - 2] = timeout.millis;
          arguments[arguments.length - 1] = TimeUnit.MILLISECONDS;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top