Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for prevSize (0.22 sec)

  1. src/runtime/mksizeclasses.go

    	prevSize := 0
    	var minAligns [pageShift + 1]int
    	for i, c := range classes {
    		if i == 0 {
    			continue
    		}
    		spanSize := c.npages * pageSize
    		objects := spanSize / c.size
    		tailWaste := spanSize - c.size*(spanSize/c.size)
    		maxWaste := float64((c.size-prevSize-1)*objects+tailWaste) / float64(spanSize)
    		alignBits := bits.TrailingZeros(uint(c.size))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. src/go/printer/nodes.go

    				p.print(blank)
    			}
    			// parameter type
    			p.expr(stripParensAlways(par.Type))
    			prevLine = parLineEnd
    		}
    
    		// if the closing ")" is on a separate line from the last parameter,
    		// print an additional "," and line break
    		if closing := p.lineFor(fields.Closing); 0 < prevLine && prevLine < closing {
    			p.print(token.COMMA)
    			p.linebreak(closing, 0, ignore, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  3. src/compress/flate/deflate.go

    			*hh = uint32(di + d.hashOffset)
    		}
    	}
    	// Update window information.
    	d.windowEnd = n
    	d.index = n
    }
    
    // Try to find a match starting at index whose length is greater than prevSize.
    // We only look at chainCount possibilities before giving up.
    func (d *compressor) findMatch(pos int, prevHead int, prevLength int, lookahead int) (length, offset int, ok bool) {
    	minMatchLook := maxMatchLength
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/iimport.go

    		r.posv1()
    	} else {
    		r.posv0()
    	}
    
    	if r.prevFile == "" && r.prevLine == 0 && r.prevColumn == 0 {
    		return token.NoPos
    	}
    	return r.p.fake.pos(r.prevFile, int(r.prevLine), int(r.prevColumn))
    }
    
    func (r *importReader) posv0() {
    	delta := r.int64()
    	if delta != deltaNewFile {
    		r.prevLine += delta
    	} else if l := r.int64(); l == -1 {
    		r.prevLine += deltaNewFile
    	} else {
    		r.prevFile = r.string()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

            Optional<Long> size = byteSource.sizeIfKnown();
            // if we know the size and it fits in an int
            if (size.isPresent() && size.get().longValue() == size.get().intValue()) {
              // otherwise try to presize a StringBuilder
              // it is kind of lame that we need to construct a decoder to access this value.
              // if this is a concern we could add special cases for some known charsets (like utf8)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          reversedList = tmp;
        }
        return reversedList;
      }
    
      // TODO(user): move parts into a default method on ListenableFuture?
      @Override
      public String toString() {
        // TODO(cpovirk): Presize to something plausible?
        StringBuilder builder = new StringBuilder();
        if (getClass().getName().startsWith("com.google.common.util.concurrent.")) {
          builder.append(getClass().getSimpleName());
        } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (1)
  7. guava/src/com/google/common/util/concurrent/AbstractFuture.java

          reversedList = tmp;
        }
        return reversedList;
      }
    
      // TODO(user): move parts into a default method on ListenableFuture?
      @Override
      public String toString() {
        // TODO(cpovirk): Presize to something plausible?
        StringBuilder builder = new StringBuilder();
        if (getClass().getName().startsWith("com.google.common.util.concurrent.")) {
          builder.append(getClass().getSimpleName());
        } else {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (1)
Back to top