Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 203 for isEnum (0.43 sec)

  1. src/runtime/pprof/elf.go

    	case 2: // big-endian
    		byteOrder = binary.BigEndian
    	}
    
    	var shnum int
    	var shoff, shentsize int64
    	switch buf[4] {
    	default:
    		return "", errBadELF
    	case 1: // 32-bit file header
    		shoff = int64(byteOrder.Uint32(buf[32:]))
    		shentsize = int64(byteOrder.Uint16(buf[46:]))
    		if shentsize != 40 {
    			return "", errBadELF
    		}
    		shnum = int(byteOrder.Uint16(buf[48:]))
    	case 2: // 64-bit file header
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 08 01:09:18 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_sigaction.c

    } go_sigaction_t;
    
    // SA_RESTORER is part of the kernel interface.
    // This is Linux i386/amd64 specific.
    #ifndef SA_RESTORER
    #define SA_RESTORER 0x4000000
    #endif
    
    int32_t
    x_cgo_sigaction(intptr_t signum, const go_sigaction_t *goact, go_sigaction_t *oldgoact) {
    	int32_t ret;
    	struct sigaction act;
    	struct sigaction oldact;
    	size_t i;
    
    	_cgo_tsan_acquire();
    
    	memset(&act, 0, sizeof act);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 22:38:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/os/signal/signal.go

    					delete(handlers.m, c)
    				}
    			}
    		}
    
    		action(n)
    	}
    
    	if len(sigs) == 0 {
    		for n := 0; n < numSig; n++ {
    			remove(n)
    		}
    	} else {
    		for _, s := range sigs {
    			remove(signum(s))
    		}
    	}
    }
    
    // Ignore causes the provided signals to be ignored. If they are received by
    // the program, nothing will happen. Ignore undoes the effect of any prior
    // calls to [Notify] for the provided signals.
    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. guava/src/com/google/common/math/MathPreconditions.java

          throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
        }
        return x;
      }
    
      @CanIgnoreReturnValue
      static BigInteger checkPositive(String role, BigInteger x) {
        if (x.signum() <= 0) {
          throw new IllegalArgumentException(role + " (" + x + ") must be > 0");
        }
        return x;
      }
    
      @CanIgnoreReturnValue
      static int checkNonNegative(String role, int x) {
        if (x < 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

       */
      static BigInteger randomPositiveBigInteger(int numBits) {
        BigInteger result;
        do {
          result = randomNonNegativeBigInteger(numBits);
        } while (result.signum() == 0);
        return result;
      }
    
      /**
       * Generates a number in [0, 2^numBits) with an exponential distribution. The floor of the log2 of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/mod/semver/semver.go

    		return -1
    	}
    	for x != "" && y != "" {
    		x = x[1:] // skip - or .
    		y = y[1:] // skip - or .
    		var dx, dy string
    		dx, x = nextIdent(x)
    		dy, y = nextIdent(y)
    		if dx != dy {
    			ix := isNum(dx)
    			iy := isNum(dy)
    			if ix != iy {
    				if ix {
    					return -1
    				} else {
    					return +1
    				}
    			}
    			if ix {
    				if len(dx) < len(dy) {
    					return -1
    				}
    				if len(dx) > len(dy) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. android/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)
  8. src/cmd/link/internal/ld/elf.go

    	}
    	return e
    }
    
    func newElfShdr(name int64) *ElfShdr {
    	e := new(ElfShdr)
    	e.Name = uint32(name)
    	e.shnum = elf.SectionIndex(ehdr.Shnum)
    	if ehdr.Shnum >= NSECT {
    		Errorf(nil, "too many shdrs")
    	} else {
    		shdr[ehdr.Shnum] = e
    		ehdr.Shnum++
    	}
    
    	return e
    }
    
    func getElfEhdr() *ElfEhdr {
    	return &ehdr
    }
    
    func elf64writehdr(out *OutBuf) uint32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  9. src/os/signal/signal_unix.go

    func loop() {
    	for {
    		process(syscall.Signal(signal_recv()))
    	}
    }
    
    func init() {
    	watchSignalLoop = loop
    }
    
    const (
    	numSig = 65 // max across all systems
    )
    
    func signum(sig os.Signal) int {
    	switch sig := sig.(type) {
    	case syscall.Signal:
    		i := int(sig)
    		if i < 0 || i >= numSig {
    			return -1
    		}
    		return i
    	default:
    		return -1
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/MathBenchmarking.java

       */
      static BigInteger randomPositiveBigInteger(int numBits) {
        BigInteger result;
        do {
          result = randomNonNegativeBigInteger(numBits);
        } while (result.signum() == 0);
        return result;
      }
    
      /**
       * Generates a number in [0, 2^numBits) with an exponential distribution. The floor of the log2 of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.1K bytes
    - Viewed (0)
Back to top