Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for setFlushed (0.17 sec)

  1. src/runtime/mprof.go

    func (c *mProfCycleHolder) read() (cycle uint32) {
    	v := c.value.Load()
    	cycle = v >> 1
    	return cycle
    }
    
    // setFlushed sets the flushed flag. It returns the current cycle count and the
    // previous value of the flushed flag.
    func (c *mProfCycleHolder) setFlushed() (cycle uint32, alreadyFlushed bool) {
    	for {
    		prev := c.value.Load()
    		cycle = prev >> 1
    		alreadyFlushed = (prev & 0x1) != 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/text/unicode/norm/transform.go

    	// TODO: get rid of reorderBuffer. See CL 23460044.
    	rb := reorderBuffer{}
    	rb.init(f, src)
    	for {
    		// Load segment into reorder buffer.
    		rb.setFlusher(dst[nDst:], flushTransform)
    		end := decomposeSegment(&rb, nSrc, atEOF)
    		if end < 0 {
    			return nDst, nSrc, errs[-end]
    		}
    		nDst = len(dst) - len(rb.out)
    		nSrc = end
    
    		// Next quickSpan.
    		end = rb.nsrc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/unicode/norm/transform.go

    	// TODO: get rid of reorderBuffer. See CL 23460044.
    	rb := reorderBuffer{}
    	rb.init(f, src)
    	for {
    		// Load segment into reorder buffer.
    		rb.setFlusher(dst[nDst:], flushTransform)
    		end := decomposeSegment(&rb, nSrc, atEOF)
    		if end < 0 {
    			return nDst, nSrc, errs[-end]
    		}
    		nDst = len(dst) - len(rb.out)
    		nSrc = end
    
    		// Next quickSpan.
    		end = rb.nsrc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/text/unicode/norm/normalize.go

    func (f Form) IsNormal(b []byte) bool {
    	src := inputBytes(b)
    	ft := formTable[f]
    	bp, ok := ft.quickSpan(src, 0, len(b), true)
    	if ok {
    		return true
    	}
    	rb := reorderBuffer{f: *ft, src: src, nsrc: len(b)}
    	rb.setFlusher(nil, cmpNormalBytes)
    	for bp < len(b) {
    		rb.out = b[bp:]
    		if bp = decomposeSegment(&rb, bp, true); bp < 0 {
    			return false
    		}
    		bp, _ = rb.f.quickSpan(rb.src, bp, len(b), true)
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:26:23 UTC 2022
    - 14.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/unicode/norm/normalize.go

    func (f Form) IsNormal(b []byte) bool {
    	src := inputBytes(b)
    	ft := formTable[f]
    	bp, ok := ft.quickSpan(src, 0, len(b), true)
    	if ok {
    		return true
    	}
    	rb := reorderBuffer{f: *ft, src: src, nsrc: len(b)}
    	rb.setFlusher(nil, cmpNormalBytes)
    	for bp < len(b) {
    		rb.out = b[bp:]
    		if bp = decomposeSegment(&rb, bp, true); bp < 0 {
    			return false
    		}
    		bp, _ = rb.f.quickSpan(rb.src, bp, len(b), true)
    	}
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    	rb.ss = 0
    }
    
    func (rb *reorderBuffer) initString(f Form, src string) {
    	rb.f = *formTable[f]
    	rb.src.setString(src)
    	rb.nsrc = len(src)
    	rb.ss = 0
    }
    
    func (rb *reorderBuffer) setFlusher(out []byte, f func(*reorderBuffer) bool) {
    	rb.out = out
    	rb.flushF = f
    }
    
    // reset discards all characters from the buffer.
    func (rb *reorderBuffer) reset() {
    	rb.nrune = 0
    	rb.nbyte = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/text/unicode/norm/composition.go

    	rb.ss = 0
    }
    
    func (rb *reorderBuffer) initString(f Form, src string) {
    	rb.f = *formTable[f]
    	rb.src.setString(src)
    	rb.nsrc = len(src)
    	rb.ss = 0
    }
    
    func (rb *reorderBuffer) setFlusher(out []byte, f func(*reorderBuffer) bool) {
    	rb.out = out
    	rb.flushF = f
    }
    
    // reset discards all characters from the buffer.
    func (rb *reorderBuffer) reset() {
    	rb.nrune = 0
    	rb.nbyte = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 14.1K bytes
    - Viewed (0)
Back to top