- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 47 for indexByte (0.2 sec)
-
src/internal/bytealg/index_ppc64x.go
package bytealg import "internal/cpu" const MaxBruteForce = 16 var SupportsPower9 = cpu.PPC64.IsPOWER9 func init() { MaxLen = 32 } // Cutover reports the number of failures of IndexByte we should tolerate // before switching over to Index. // n is the number of bytes processed so far. // See the bytes.Index implementation for details. func Cutover(n int) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 09 05:34:46 UTC 2023 - 637 bytes - Viewed (0) -
src/internal/bytealg/index_generic.go
// Requires 2 <= len(b) <= MaxLen. func IndexString(a, b string) int { panic("unimplemented") } // Cutover reports the number of failures of IndexByte we should tolerate // before switching over to Index. // n is the number of bytes processed so far. // See the bytes.Index implementation for details. func Cutover(n int) int { panic("unimplemented")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 901 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/syscall.go
// ByteSliceFromString returns a NUL-terminated slice of bytes // containing the text of s. If s contains a NUL byte at any // location, it returns (nil, EINVAL). func ByteSliceFromString(s string) ([]byte, error) { if strings.IndexByte(s, 0) != -1 { return nil, EINVAL } a := make([]byte, len(s)+1) copy(a, s) return a, nil } // BytePtrFromString returns a pointer to a NUL-terminated array of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.3K bytes - Viewed (0) -
src/internal/bytealg/indexbyte_loong64.s
// Copyright 2022 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. #include "go_asm.h" #include "textflag.h" TEXT ·IndexByte<ABIInternal>(SB),NOSPLIT,$0-40 // R4 = b_base // R5 = b_len // R6 = b_cap (unused) // R7 = byte to find AND $0xff, R7 MOVV R4, R6 // store base for later ADDV R4, R5 // end ADDV $-1, R4 PCALIGN $16
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 905 bytes - Viewed (0) -
src/internal/bytealg/indexbyte_riscv64.s
// Copyright 2019 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. #include "go_asm.h" #include "textflag.h" TEXT ·IndexByte<ABIInternal>(SB),NOSPLIT,$0-40 // X10 = b_base // X11 = b_len // X12 = b_cap (unused) // X13 = byte to find AND $0xff, X13 MOV X10, X12 // store base for later ADD X10, X11 // end SUB $1, X10 loop:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 13:57:06 UTC 2023 - 919 bytes - Viewed (0) -
src/internal/bytealg/indexbyte_mips64x.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build mips64 || mips64le #include "go_asm.h" #include "textflag.h" TEXT ·IndexByte(SB),NOSPLIT,$0-40 MOVV b_base+0(FP), R1 MOVV b_len+8(FP), R2 MOVBU c+24(FP), R3 // byte to find MOVV R1, R4 // store base for later ADDV R1, R2 // end ADDV $-1, R1 loop: ADDV $1, R1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 06 10:24:44 UTC 2021 - 985 bytes - Viewed (0) -
cmd/os-dirent_namelen_linux.go
limit := dirent.Reclen - fixedHdr if limit > nameBufLen { limit = nameBufLen } // Avoid bugs in long file names // https://github.com/golang/tools/commit/5f9a5413737ba4b4f692214aebee582b47c8be74 nameLen := bytes.IndexByte(nameBuf[:limit], 0) if nameLen < 0 { return 0, fmt.Errorf("failed to find terminating 0 byte in dirent") } return uint64(nameLen), nil
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 1.5K bytes - Viewed (0) -
src/cmd/go/internal/telemetrystats/version_unix.go
import ( "bytes" "fmt" "runtime" "strings" "cmd/internal/telemetry" "golang.org/x/sys/unix" ) func incrementVersionCounters() { convert := func(nullterm []byte) string { end := bytes.IndexByte(nullterm, 0) if end < 0 { end = len(nullterm) } return string(nullterm[:end]) } var v unix.Utsname err := unix.Uname(&v) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 15:44:55 UTC 2024 - 1.4K bytes - Viewed (0) -
src/internal/bytealg/indexbyte_mipsx.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build mips || mipsle #include "go_asm.h" #include "textflag.h" TEXT ·IndexByte(SB),NOSPLIT,$0-20 MOVW b_base+0(FP), R1 MOVW b_len+4(FP), R2 MOVBU c+12(FP), R3 // byte to find ADDU $1, R1, R4 // store base+1 for later ADDU R1, R2 // end loop: BEQ R1, R2, notfound MOVBU (R1), R5
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 06 10:24:44 UTC 2021 - 1012 bytes - Viewed (0) -
istioctl/pkg/multixds/google.go
} const projSeg = "/projects/" i := strings.Index(u.Path, projSeg) if i == -1 { return nil, fmt.Errorf("webhook URL %s doesn't contain the projects segment", u) } i += len(projSeg) j := strings.IndexByte(u.Path[i:], '/') if j == -1 { return nil, fmt.Errorf("webhook URL %s is malformed", u) } ret.gcpProject = u.Path[i : i+j] const crSeg = "/ISTIO_META_CLOUDRUN_ADDR/" i += j
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 06 03:39:27 UTC 2022 - 1.5K bytes - Viewed (0)