Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 871 for BigVal (0.35 sec)

  1. src/crypto/x509/oid.go

    			bigVal = bigVal.Lsh(bigVal, bitsPerByte).Or(bigVal, big.NewInt(int64(curVal)))
    			if valEnd {
    				if start == 0 {
    					b.WriteString("2.")
    					bigVal = bigVal.Sub(bigVal, big.NewInt(80))
    				}
    				numBuf = bigVal.Append(numBuf, 10)
    				b.Write(numBuf)
    				numBuf = numBuf[:0]
    				val = 0
    				start = i + 1
    				overflow = false
    			}
    			continue
    		}
    		val <<= bitsPerByte
    		val |= uint64(curVal)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/runtime/map_benchmark_test.go

    	m := make(map[BigKey]bool)
    	k := BigKey{3, 4, 5}
    	m[k] = true
    	for i := 0; i < b.N; i++ {
    		_ = m[k]
    	}
    }
    
    type BigVal [3]int64
    
    func BenchmarkBigValMap(b *testing.B) {
    	m := make(map[BigKey]BigVal)
    	k := BigKey{3, 4, 5}
    	m[k] = BigVal{6, 7, 8}
    	for i := 0; i < b.N; i++ {
    		_ = m[k]
    	}
    }
    
    func BenchmarkSmallKeyMap(b *testing.B) {
    	m := make(map[int16]bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. src/os/signal/signal.go

    )
    
    // Notify causes package signal to relay incoming signals to c.
    // If no signals are provided, all incoming signals will be relayed to c.
    // Otherwise, just the provided signals will.
    //
    // Package signal will not block sending to c: the caller must ensure
    // that c has sufficient buffer space to keep up with the expected
    // signal rate. For a channel used for notification of just one signal value,
    // a buffer of size 1 is sufficient.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprognet/signal.go

    // must not import anything (like net, but also like os/signal)
    // that kicks off background goroutines during init.
    
    package main
    
    import (
    	"os/signal"
    	"syscall"
    )
    
    func init() {
    	register("SignalIgnoreSIGTRAP", SignalIgnoreSIGTRAP)
    }
    
    func SignalIgnoreSIGTRAP() {
    	signal.Ignore(syscall.SIGTRAP)
    	syscall.Kill(syscall.Getpid(), syscall.SIGTRAP)
    	println("OK")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 646 bytes
    - Viewed (0)
  5. src/runtime/testdata/testprog/signal.go

    	// Should die immediately, but we've seen flakiness on various
    	// systems (see issue 14063). It's possible that the signal is
    	// being delivered to a different thread and we are returning
    	// and exiting before that thread runs again. Give the program
    	// a little while to die to make sure we pick up the signal
    	// before we return and exit the program. The time here
    	// shouldn't matter--we'll never really sleep this long.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 861 bytes
    - Viewed (0)
  6. src/runtime/defs_openbsd.go

    */
    
    package runtime
    
    /*
    #include <sys/types.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/time.h>
    #include <sys/unistd.h>
    #include <sys/signal.h>
    #include <errno.h>
    #include <fcntl.h>
    #include <pthread.h>
    #include <signal.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	O_NONBLOCK = C.O_NONBLOCK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 17:31:23 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. src/runtime/defs_darwin.go

    */
    
    package runtime
    
    /*
    #define __DARWIN_UNIX03 0
    #include <mach/mach_time.h>
    #include <sys/types.h>
    #include <sys/time.h>
    #include <errno.h>
    #include <signal.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <pthread.h>
    #include <fcntl.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. src/runtime/sigtab_linux_mipsx.go

    	/*  40 */ {_SigNotify, "signal 40"},
    	/*  41 */ {_SigNotify, "signal 41"},
    	/*  42 */ {_SigNotify, "signal 42"},
    	/*  43 */ {_SigNotify, "signal 43"},
    	/*  44 */ {_SigNotify, "signal 44"},
    	/*  45 */ {_SigNotify, "signal 45"},
    	/*  46 */ {_SigNotify, "signal 46"},
    	/*  47 */ {_SigNotify, "signal 47"},
    	/*  48 */ {_SigNotify, "signal 48"},
    	/*  49 */ {_SigNotify, "signal 49"},
    	/*  50 */ {_SigNotify, "signal 50"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 6K bytes
    - Viewed (0)
  9. src/runtime/sigqueue.go

    		}
    	}
    }
    
    // signalWaitUntilIdle waits until the signal delivery mechanism is idle.
    // This is used to ensure that we do not drop a signal notification due
    // to a race between disabling a signal and receiving a signal.
    // This assumes that signal delivery has already been disabled for
    // the signal(s) in question, and here we are just waiting to make sure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_context.go

    }
    
    // initializationSignalFrom returns an initialization signal function
    // which when called signals that watch initialization has already finished
    // to priority and fairness dispatcher.
    func initializationSignalFrom(ctx context.Context) (InitializationSignal, bool) {
    	signal, ok := ctx.Value(priorityAndFairnessInitializationSignalKey).(InitializationSignal)
    	return signal, ok && signal != nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 14 14:39:15 UTC 2021
    - 2.9K bytes
    - Viewed (0)
Back to top