Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for bytereg (0.42 sec)

  1. src/strconv/bytealg.go

    // license that can be found in the LICENSE file.
    
    //go:build !compiler_bootstrap
    
    package strconv
    
    import "internal/bytealg"
    
    // index returns the index of the first instance of c in s, or -1 if missing.
    func index(s string, c byte) int {
    	return bytealg.IndexByteString(s, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 389 bytes
    - Viewed (0)
  2. src/internal/bytealg/bytealg.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytealg
    
    import (
    	"internal/cpu"
    	"unsafe"
    )
    
    // Offsets into internal/cpu records for use in assembly.
    const (
    	offsetX86HasSSE42  = unsafe.Offsetof(cpu.X86.HasSSE42)
    	offsetX86HasAVX2   = unsafe.Offsetof(cpu.X86.HasAVX2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/crypto/elliptic/elliptic.go

    func Marshal(curve Curve, x, y *big.Int) []byte {
    	panicIfNotOnCurve(curve, x, y)
    
    	byteLen := (curve.Params().BitSize + 7) / 8
    
    	ret := make([]byte, 1+2*byteLen)
    	ret[0] = 4 // uncompressed point
    
    	x.FillBytes(ret[1 : 1+byteLen])
    	y.FillBytes(ret[1+byteLen : 1+2*byteLen])
    
    	return ret
    }
    
    // MarshalCompressed converts a point on the curve into the compressed form
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/query/TermRangeQueryCommand.java

                queryBuf.append(termRangeQuery.includesLower() ? '[' : '{');
                final BytesRef lowerTerm = termRangeQuery.getLowerTerm();
                queryBuf.append(lowerTerm != null ? ("*".equals(Term.toString(lowerTerm)) ? "\\*" : Term.toString(lowerTerm)) : "*");
                queryBuf.append(" TO ");
                final BytesRef upperTerm = termRangeQuery.getUpperTerm();
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/internal/stringslite/strings.go

    		}
    		return -1
    	case n > len(s):
    		return -1
    	case n <= bytealg.MaxLen:
    		// Use brute force when s and substr both are small
    		if len(s) <= bytealg.MaxBruteForce {
    			return bytealg.IndexString(s, substr)
    		}
    		c0 := substr[0]
    		c1 := substr[1]
    		i := 0
    		t := len(s) - n + 1
    		fails := 0
    		for i < t {
    			if s[i] != c0 {
    				// IndexByte is faster than bytealg.IndexString, so use it as long as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/strings/compare.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package strings
    
    import "internal/bytealg"
    
    // Compare returns an integer comparing two strings lexicographically.
    // The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
    //
    // Use Compare when you need to perform a three-way comparison (with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 628 bytes
    - Viewed (0)
  7. src/net/parse.go

    	n := 0
    	for i := 0; i < len(s); i++ {
    		if bytealg.IndexByteString(t, s[i]) >= 0 {
    			n++
    		}
    	}
    	return n
    }
    
    // Split s at any bytes in t.
    func splitAtBytes(s string, t string) []string {
    	a := make([]string, 1+countAnyByte(s, t))
    	n := 0
    	last := 0
    	for i := 0; i < len(s); i++ {
    		if bytealg.IndexByteString(t, s[i]) >= 0 {
    			if last < i {
    				a[n] = s[last:i]
    				n++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/crypto/elliptic/nistec.go

    		return p, errors.New("overflowing coordinate")
    	}
    	// Encode the coordinates and let SetBytes reject invalid points.
    	byteLen := (curve.params.BitSize + 7) / 8
    	buf := make([]byte, 1+2*byteLen)
    	buf[0] = 4 // uncompressed point
    	x.FillBytes(buf[1 : 1+byteLen])
    	y.FillBytes(buf[1+byteLen : 1+2*byteLen])
    	return curve.newPoint().SetBytes(buf)
    }
    
    func (curve *nistCurve[Point]) pointToAffine(p Point) (x, y *big.Int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 16:19:34 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue50281.go

    }
    
    func _[S ~string | ~[]byte](s S) {
    	var buf []byte
    	_ = append(buf, s...)
    }
    
    // test case from issue
    
    type byteseq interface {
    	string | []byte
    }
    
    // This should allow to eliminate the two functions above.
    func AppendByteString[source byteseq](buf []byte, s source) []byte {
    	return append(buf, s[1:6]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 554 bytes
    - Viewed (0)
  10. src/net/ipsock.go

    	} else {
    		host = hostport[:i]
    		if bytealg.IndexByteString(host, ':') >= 0 {
    			return addrErr(hostport, tooManyColons)
    		}
    	}
    	if bytealg.IndexByteString(hostport[j:], '[') >= 0 {
    		return addrErr(hostport, "unexpected '[' in address")
    	}
    	if bytealg.IndexByteString(hostport[k:], ']') >= 0 {
    		return addrErr(hostport, "unexpected ']' in address")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top