Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for smallish (0.2 sec)

  1. src/cmd/internal/src/xpos.go

    func (p XPos) LineNumber() string {
    	if !p.IsKnown() {
    		return "?"
    	}
    	return p.lico.lineNumber()
    }
    
    // FileIndex returns a smallish non-negative integer corresponding to the
    // file for this source position.  Smallish is relative; it can be thousands
    // large, but not millions.
    func (p XPos) FileIndex() int32 {
    	return p.index
    }
    
    func (p XPos) LineNumberHTML() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. cmd/kube-apiserver/app/options/validation.go

    				errs = append(errs, err)
    			}
    		}
    	}
    
    	return errs
    }
    
    func validateMaxCIDRRange(cidr net.IPNet, maxCIDRBits int, cidrFlag string) error {
    	// Should be smallish sized cidr, this thing is kept in etcd
    	// bigger cidr (specially those offered by IPv6) will add no value
    	// significantly increase snapshotting time.
    	var ones, bits = cidr.Mask.Size()
    	if bits-ones > maxCIDRBits {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/import.go

    	// over path prefixes is only O(P × k) with maximum path depth k. For
    	// large projects both M and P may be very large (note that M ≤ P), but k
    	// will tend to remain smallish (if for no other reason than filesystem
    	// path limitations).
    	//
    	// We perform this iteration either one or two times. If mg is initially nil,
    	// then we first attempt to load the package using only the main module and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  6. test/typeparam/smallest.go

    		~float32 | ~float64 |
    		~string
    }
    
    func Smallest[T Ordered](s []T) T {
    	r := s[0] // panics if slice is empty
    	for _, v := range s[1:] {
    		if v < r {
    			r = v
    		}
    	}
    	return r
    }
    
    func main() {
    	vec1 := []float64{5.3, 1.2, 32.8}
    	vec2 := []string{"abc", "def", "aaa"}
    
    	want1 := 1.2
    	if got := Smallest(vec1); got != want1 {
    		panic(fmt.Sprintf("got %d, want %d", got, want1))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 825 bytes
    - Viewed (0)
  7. test/asmhdr.dir/main.go

    )
    
    type typ struct {
    	a uint64
    	b [100]uint8
    	c uint8
    }
    
    var (
    	typSize uint64
    
    	typA, typB, typC uint64
    )
    
    func main() {
    	if smallInt != smallIntAsm {
    		println("smallInt", smallInt, "!=", smallIntAsm)
    	}
    	if bigInt != bigIntAsm {
    		println("bigInt", uint64(bigInt), "!=", bigIntAsm)
    	}
    	if stringVal != string(stringAsm[:]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 10 21:27:19 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/strconv/itoa_test.go

    	smallInts := []int64{7, 42}
    	for _, smallInt := range smallInts {
    		b.Run(Itoa(int(smallInt)), func(b *testing.B) {
    			for i := 0; i < b.N; i++ {
    				s := FormatInt(smallInt, 10)
    				BenchSink += len(s)
    			}
    		})
    	}
    }
    
    func BenchmarkAppendIntSmall(b *testing.B) {
    	dst := make([]byte, 0, 30)
    	const smallInt = 42
    	for i := 0; i < b.N; i++ {
    		dst = AppendInt(dst[:0], smallInt, 10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 15 21:09:39 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  9. src/math/big/float_test.go

    		{"0x0.0000011p-126", math.Float32frombits(0x00000001), Above}, // rounded up to smallest denormal
    		{"0x0.0000018p-126", math.Float32frombits(0x00000001), Above}, // rounded up to smallest denormal
    
    		{"0x1.0000000p-149", math.Float32frombits(0x00000001), Exact}, // smallest denormal
    		{"0x0.0000020p-126", math.Float32frombits(0x00000001), Exact}, // smallest denormal
    		{"0x0.fffffe0p-126", math.Float32frombits(0x007fffff), Exact}, // largest denormal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  10. src/encoding/json/fold.go

    			i++
    			continue
    		}
    		// Handle multi-byte Unicode.
    		r, n := utf8.DecodeRune(in[i:])
    		out = utf8.AppendRune(out, foldRune(r))
    		i += n
    	}
    	return out
    }
    
    // foldRune is returns the smallest rune for all runes in the same fold set.
    func foldRune(r rune) rune {
    	for {
    		r2 := unicode.SimpleFold(r)
    		if r2 <= r {
    			return r2
    		}
    		r = r2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top