Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 503 for remSign (0.15 sec)

  1. src/cmd/compile/internal/inline/inlheur/scoreadjusttyp_string.go

    func (i scoreAdjustTyp) String() string {
    	var b bytes.Buffer
    
    	remain := uint64(i)
    	seen := false
    
    	for k, v := range _scoreAdjustTyp_value {
    		x := _scoreAdjustTyp_name[_scoreAdjustTyp_index[k]:_scoreAdjustTyp_index[k+1]]
    		if v == 0 {
    			if i == 0 {
    				b.WriteString(x)
    				return b.String()
    			}
    			continue
    		}
    		if (v & remain) == v {
    			remain &^= v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 21:13:01 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/gofmt/testdata/typeswitch.input

    */
    package p
    
    func f() {
    	var x interface{}
    	switch x.(type) { // should remain the same
    	}
    	switch (x.(type)) { // should become: switch x.(type) {
    	}
    
    	switch x.(type) { // should remain the same
    	case int:
    	}
    	switch (x.(type)) { // should become: switch x.(type) {
    	case int:
    	}
    
    	switch x.(type) { // should remain the same
    	case []int:
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  3. src/internal/poll/copy_file_range_linux.go

    const maxCopyFileRangeRound = 1 << 30
    
    // CopyFileRange copies at most remain bytes of data from src to dst, using
    // the copy_file_range system call. dst and src must refer to regular files.
    func CopyFileRange(dst, src *FD, remain int64) (written int64, handled bool, err error) {
    	if !isKernelVersionGE53() {
    		return 0, false, nil
    	}
    
    	for remain > 0 {
    		max := remain
    		if max > maxCopyFileRangeRound {
    			max = maxCopyFileRangeRound
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 17:40:10 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/crypto/cipher/ctr.go

    		ctr:     bytes.Clone(iv),
    		out:     make([]byte, 0, bufSize),
    		outUsed: 0,
    	}
    }
    
    func (x *ctr) refill() {
    	remain := len(x.out) - x.outUsed
    	copy(x.out, x.out[x.outUsed:])
    	x.out = x.out[:cap(x.out)]
    	bs := x.b.BlockSize()
    	for remain <= len(x.out)-bs {
    		x.b.Encrypt(x.out[remain:], x.ctr)
    		remain += bs
    
    		// Increment counter
    		for i := len(x.ctr) - 1; i >= 0; i-- {
    			x.ctr[i]++
    			if x.ctr[i] != 0 {
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/net/splice_linux.go

    //
    // If spliceFrom returns handled == false, it has performed no work.
    func spliceFrom(c *netFD, r io.Reader) (written int64, err error, handled bool) {
    	var remain int64 = 1<<63 - 1 // by default, copy until EOF
    	lr, ok := r.(*io.LimitedReader)
    	if ok {
    		remain, r = lr.N, lr.R
    		if remain <= 0 {
    			return 0, nil, true
    		}
    	}
    
    	var s *netFD
    	switch v := r.(type) {
    	case *TCPConn:
    		s = v.fd
    	case tcpConnWithoutWriteTo:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/os/readfrom_linux_test.go

    	srcfd  int
    	remain int64
    
    	written int64
    	handled bool
    	err     error
    
    	original func(dst, src *poll.FD, remain int64) (int64, bool, error)
    }
    
    func (h *spliceFileHook) install() {
    	h.original = *PollSpliceFile
    	*PollSpliceFile = func(dst, src *poll.FD, remain int64) (int64, bool, error) {
    		h.called = true
    		h.dstfd = dst.Sysfd
    		h.srcfd = src.Sysfd
    		h.remain = remain
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. src/internal/poll/splice_linux.go

    	if err != nil {
    		return 0, false, err
    	}
    	defer putPipe(p)
    	var inPipe, n int
    	for err == nil && remain > 0 {
    		max := maxSpliceSize
    		if int64(max) > remain {
    			max = int(remain)
    		}
    		inPipe, err = spliceDrain(p.wfd, src, max)
    		// The operation is considered handled if splice returns no
    		// error, or an error other than EINVAL. An EINVAL means the
    		// kernel does not support splice for the socket type of src.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/doc.go

    //
    // lostcancel: check cancel func returned by context.WithCancel is called
    //
    // The cancellation function returned by context.WithCancel, WithTimeout,
    // and WithDeadline must be called or the new context will remain live
    // until its parent context is cancelled.
    // (The background context is never cancelled.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 632 bytes
    - Viewed (0)
  9. src/encoding/gob/debug.go

    	if !deb.remainingKnown {
    		return
    	}
    	if deb.remain < 0 {
    		fmt.Fprintf(os.Stderr, "remaining byte count is negative! %d\n", deb.remain)
    		return
    	}
    	data := make([]byte, deb.remain)
    	n, _ := deb.r.peek(data)
    	if n == 0 {
    		os.Stderr.Write(empty)
    		return
    	}
    	b := new(bytes.Buffer)
    	fmt.Fprintf(b, "[%d]{\n", deb.remain)
    	// Blanks until first byte
    	lineLength := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 09:34:41 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  10. src/net/splice_linux_test.go

    }
    
    type spliceHook struct {
    	called bool
    	dstfd  int
    	srcfd  int
    	remain int64
    
    	written int64
    	handled bool
    	err     error
    
    	original func(dst, src *poll.FD, remain int64) (int64, bool, error)
    }
    
    func (h *spliceHook) install() {
    	h.original = pollSplice
    	pollSplice = func(dst, src *poll.FD, remain int64) (int64, bool, error) {
    		h.called = true
    		h.dstfd = dst.Sysfd
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top