Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for slideUp (0.04 sec)

  1. src/bytes/buffer.go

    		return i
    	}
    	if b.buf == nil && n <= smallBufferSize {
    		b.buf = make([]byte, n, smallBufferSize)
    		return 0
    	}
    	c := cap(b.buf)
    	if n <= c/2-m {
    		// We can slide things down instead of allocating a new
    		// slice. We only need m+n <= c to slide, but
    		// we instead let capacity get twice as large so we
    		// don't spend all our time copying.
    		copy(b.buf, b.buf[b.off:])
    	} else if c > maxInt-c-n {
    		panic(ErrTooLarge)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 19 17:38:56 UTC 2025
    - 16K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      void removeAt(int i) {
        E[] items = this.items;
        // if removing front item, just advance
        if (i == takeIndex) {
          items[takeIndex] = null;
          takeIndex = inc(takeIndex);
        } else {
          // slide over all others up through putIndex.
          for (; ; ) {
            int nexti = inc(i);
            if (nexti != putIndex) {
              items[i] = items[nexti];
              i = nexti;
            } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. src/bufio/bufio.go

    		lastByte:     -1,
    		lastRuneSize: -1,
    	}
    }
    
    var errNegativeRead = errors.New("bufio: reader returned negative count from Read")
    
    // fill reads a new chunk into the buffer.
    func (b *Reader) fill() {
    	// Slide existing data to beginning.
    	if b.r > 0 {
    		copy(b.buf, b.buf[b.r:b.w])
    		b.w -= b.r
    		b.r = 0
    	}
    
    	if b.w >= len(b.buf) {
    		panic("bufio: tried to fill full buffer")
    	}
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/riscv64.s

    	VMVXS		V2, X10				// 57252042
    	VMVSX		X10, V2				// 57610542
    
    	// 31.16.2: Floating-Point Scalar Move Instructions
    	VFMVFS		V2, F10				// 57152042
    	VFMVSF		F10, V2				// 57510542
    
    	// 31.16.3: Vector Slide Instructions
    	VSLIDEUPVX	X10, V2, V3			// d741253a
    	VSLIDEUPVX	X10, V2, V0, V3			// d7412538
    	VSLIDEUPVI	$16, V2, V3			// d731283a
    	VSLIDEUPVI	$16, V2, V0, V3			// d7312838
    	VSLIDEDOWNVX	X10, V2, V3			// d741253e
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed May 21 14:19:19 UTC 2025
    - 49.1K bytes
    - Viewed (0)
Back to top