Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 203 for isEnum (0.28 sec)

  1. pkg/proxy/ipvs/testing/util.go

    )
    
    // ExpectedVirtualServer is the expected ipvs rules with VirtualServer and RealServer
    // VSNum is the expected ipvs virtual server number
    // IP:Port protocol is the expected ipvs vs info
    // RS is the RealServer of this expected VirtualServer
    type ExpectedVirtualServer struct {
    	VSNum    int
    	IP       string
    	Port     uint16
    	Protocol string
    	RS       []ExpectedRealServer
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/os/signal/signal_plan9.go

    func signal_recv() string
    
    func init() {
    	watchSignalLoop = loop
    }
    
    func loop() {
    	for {
    		process(syscall.Note(signal_recv()))
    	}
    }
    
    const numSig = 256
    
    func signum(sig os.Signal) int {
    	switch sig := sig.(type) {
    	case syscall.Note:
    		n, ok := sigtab[sig]
    		if !ok {
    			n = len(sigtab) + 1
    			if n > numSig {
    				return -1
    			}
    			sigtab[sig] = n
    		}
    		return n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 01 23:55:34 UTC 2020
    - 1K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractCaseVfsRelativePathTest.groovy

            'root/some' | '/root/other' | 4
        }
    
        def "can compare by first segment"() {
            expect:
            Integer.signum(VfsRelativePath.of(path1, offset).compareToFirstSegment(path2, caseSensitivity)) == result
            if (result) {
                assert Integer.signum(path1.substring(offset) <=> path2) == result
            }
    
            where:
            path1                   | offset | path2              | result
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  4. hack/make-rules/test.sh

    OPTIONS:
      -p <number>   : number of parallel workers, must be >= 1
    EOF
    }
    
    isnum() {
      [[ "$1" =~ ^[0-9]+$ ]]
    }
    
    PARALLEL="${PARALLEL:-1}"
    while getopts "hp:i:" opt ; do
      case ${opt} in
        h)
          kube::test::usage
          exit 0
          ;;
        p)
          PARALLEL="${OPTARG}"
          if ! isnum "${PARALLEL}" || [[ "${PARALLEL}" -le 0 ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. src/debug/elf/file.go

    		shnum = int(bo.Uint16(data[unsafe.Offsetof(hdr.Shnum):]))
    		shstrndx = int(bo.Uint16(data[unsafe.Offsetof(hdr.Shstrndx):]))
    	}
    
    	if shoff < 0 {
    		return nil, &FormatError{0, "invalid shoff", shoff}
    	}
    	if phoff < 0 {
    		return nil, &FormatError{0, "invalid phoff", phoff}
    	}
    
    	if shoff == 0 && shnum != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/DoubleUtils.java

        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
        } else if (exponent > MAX_EXPONENT) {
          return x.signum() * POSITIVE_INFINITY;
        }
    
        /*
         * We need the top SIGNIFICAND_BITS + 1 bits, including the "implicit" one bit. To make rounding
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  7. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashCodeTest.groovy

            def hashA = HashCode.fromString(a)
            def hashB = HashCode.fromString(b)
            def compareAB = hashA <=> hashB
            def compareBA = hashB <=> hashA
    
            expect:
            Math.signum(compareAB) == expected
            Math.signum(compareBA) == -expected
    
            where:
            a                                    | b                                    | expected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  8. src/syscall/zsysnum_openbsd_arm64.go

    	SYS_THRKILL        = 119 // { int sys_thrkill(pid_t tid, int signum, void *tcb); }
    	SYS_READV          = 120 // { ssize_t sys_readv(int fd, \
    	SYS_WRITEV         = 121 // { ssize_t sys_writev(int fd, \
    	SYS_KILL           = 122 // { int sys_kill(int pid, int signum); }
    	SYS_FCHOWN         = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 17:34:54 UTC 2019
    - 14.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/IntMath.java

         * deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of
         * p / q.
         *
         * signum is 1 if p and q are both nonnegative or both negative, and -1 otherwise.
         */
        int signum = 1 | ((p ^ q) >> (Integer.SIZE - 1));
        boolean increment;
        switch (mode) {
          case UNNECESSARY:
            checkRoundingUnnecessary(rem == 0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. src/syscall/syscall_darwin.go

    //go:linkname utimensat
    
    //sys	utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
    
    /*
     * Wrapped
     */
    
    //sys	kill(pid int, signum int, posix int) (err error)
    
    func Kill(pid int, signum Signal) (err error) { return kill(pid, int(signum), 1) }
    
    /*
     * Exposed directly
     */
    //sys	Access(path string, mode uint32) (err error)
    //sys	Adjtime(delta *Timeval, olddelta *Timeval) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top