Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for minHeap (0.12 sec)

  1. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        }
      }
    
      private final Heap minHeap;
      private final Heap maxHeap;
      @VisibleForTesting final int maximumSize;
      private @Nullable Object[] queue;
      private int size;
      private int modCount;
    
      private MinMaxPriorityQueue(Builder<? super E> builder, int queueSize) {
        Ordering<E> ordering = builder.ordering();
        this.minHeap = new Heap(ordering);
        this.maxHeap = new Heap(ordering.reverse());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        }
      }
    
      private final Heap minHeap;
      private final Heap maxHeap;
      @VisibleForTesting final int maximumSize;
      private @Nullable Object[] queue;
      private int size;
      private int modCount;
    
      private MinMaxPriorityQueue(Builder<? super E> builder, int queueSize) {
        Ordering<E> ordering = builder.ordering();
        this.minHeap = new Heap(ordering);
        this.maxHeap = new Heap(ordering.reverse());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  3. src/encoding/json/stream.go

    		n := copy(dec.buf, dec.buf[dec.scanp:])
    		dec.buf = dec.buf[:n]
    		dec.scanp = 0
    	}
    
    	// Grow buffer if not large enough.
    	const minRead = 512
    	if cap(dec.buf)-len(dec.buf) < minRead {
    		newBuf := make([]byte, len(dec.buf), 2*cap(dec.buf)+minRead)
    		copy(newBuf, dec.buf)
    		dec.buf = newBuf
    	}
    
    	// Read. Delay error for next iteration (after scan).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  4. src/runtime/mstats.go

    		// act without synchronizing with a STW. See #64401.
    		lock(&sched.sysmonlock)
    		lock(&trace.lock)
    		if gcController.heapInUse.load() != uint64(consStats.inHeap) {
    			print("runtime: heapInUse=", gcController.heapInUse.load(), "\n")
    			print("runtime: consistent value=", consStats.inHeap, "\n")
    			throw("heapInUse and consistent stats are not equal")
    		}
    		if gcController.heapReleased.load() != uint64(consStats.released) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  5. src/strconv/ftoa.go

    	// So the number is already shortest if 10^(dp-nd) > 2^(exp-mantbits),
    	// or equivalently log2(10)*(dp-nd) > exp-mantbits.
    	// It is true if 332/100*(dp-nd) >= exp-mantbits (log2(10) > 3.32).
    	minexp := flt.bias + 1 // minimum possible exponent
    	if exp > minexp && 332*(d.dp-d.nd) >= 100*(exp-int(flt.mantbits)) {
    		// The number is already shortest.
    		return
    	}
    
    	// d = mant << (exp - mantbits)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/strconv/atof.go

    // If trunc is true, trailing non-zero bits have been omitted from the mantissa.
    func atofHex(s string, flt *floatInfo, mantissa uint64, exp int, neg, trunc bool) (float64, error) {
    	maxExp := 1<<flt.expbits + flt.bias - 2
    	minExp := flt.bias + 1
    	exp += int(flt.mantbits) // mantissa now implicitly divided by 2^mantbits.
    
    	// Shift mantissa and exponent to bring representation into float range.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  7. src/runtime/metrics.go

    			deps: makeStatDepSet(heapStatsDep),
    			compute: func(in *statAggregate, out *metricValue) {
    				out.kind = metricKindUint64
    				out.scalar = uint64(in.heapStats.committed - in.heapStats.inHeap -
    					in.heapStats.inStacks - in.heapStats.inWorkBufs -
    					in.heapStats.inPtrScalarBits)
    			},
    		},
    		"/memory/classes/heap/objects:bytes": {
    			deps: makeStatDepSet(heapStatsDep),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. src/runtime/cgocall.go

    		it := *(**_type)(p)
    		if it == nil {
    			return
    		}
    		// A type known at compile time is OK since it's
    		// constant. A type not known at compile time will be
    		// in the heap and will not be OK.
    		if inheap(uintptr(unsafe.Pointer(it))) {
    			panic(errorString(msg))
    		}
    		p = *(*unsafe.Pointer)(add(p, goarch.PtrSize))
    		if !cgoIsGoPointer(p) {
    			return
    		}
    		if !top && !isPinned(p) {
    			panic(errorString(msg))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. src/runtime/mgcsweep.go

    			// Free large object span to heap.
    
    			// Count the free in the consistent, external stats.
    			//
    			// Do this before freeSpan, which might update heapStats' inHeap
    			// value. If it does so, then metrics that subtract object footprint
    			// from inHeap might overflow. See #67019.
    			stats := memstats.heapStats.acquire()
    			atomic.Xadd64(&stats.largeFreeCount, 1)
    			atomic.Xadd64(&stats.largeFree, int64(size))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  10. src/math/big/float.go

    )
    
    const debugFloat = false // enable for debugging
    
    // A nonzero finite Float represents a multi-precision floating point number
    //
    //	sign × mantissa × 2**exponent
    //
    // with 0.5 <= mantissa < 1.0, and MinExp <= exponent <= MaxExp.
    // A Float may also be zero (+0, -0) or infinite (+Inf, -Inf).
    // All Floats are ordered, and the ordering of two Floats x and y
    // is defined by x.Cmp(y).
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
Back to top