- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for indexOf (0.33 sec)
-
src/bytes/boundary_test.go
for i := range b { idx := Index(b[i:], q[:j]) if idx != -1 { t.Fatalf("Index(b[%d:], q[:%d])=%d, want -1\n", i, j, idx) } } q[j-1] = 0 } // Test differing alignments and sizes of q which always end on a page boundary. q[len(q)-1] = 1 // difference is only found on the last byte for j := 0; j < len(q); j++ { for i := range b { idx := Index(b[i:], q[j:]) if idx != -1 {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 30 20:05:58 GMT 2023 - 2.8K bytes - Viewed (0) -
src/archive/tar/strconv.go
n, perr := strconv.ParseInt(nStr, 10, 0) // Intentionally parse as native int if perr != nil || n < 5 || n > int64(len(s)) { return "", "", s, ErrHeader } n -= int64(len(nStr) + 1) // convert from index in s to index in rest if n <= 0 { return "", "", s, ErrHeader } // Extract everything between the space and the final newline. rec, nl, rem := rest[:n-1], rest[n-1:n], rest[n:] if nl != "\n" {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 01 14:28:42 GMT 2023 - 9K bytes - Viewed (0) -
src/cmd/cgo/godefs.go
// // +godefs map struct_in_addr6 [16]byte // for _, g := range f.Comments { for _, c := range g.List { i := strings.Index(c.Text, "+godefs map") if i < 0 { continue } s := strings.TrimSpace(c.Text[i+len("+godefs map"):]) i = strings.Index(s, " ") if i < 0 { fmt.Fprintf(os.Stderr, "invalid +godefs map comment: %s\n", c.Text) continue }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Sep 08 14:33:35 GMT 2022 - 4.5K bytes - Viewed (0) -
src/cmd/asm/main.go
ctxt.IsAsm = true ctxt.Pkgpath = *flags.Importpath switch *flags.Spectre { default: log.Printf("unknown setting -spectre=%s", *flags.Spectre) os.Exit(2) case "": // nothing case "index": // known to compiler; ignore here so people can use // the same list with -gcflags=-spectre=LIST and -asmflags=-spectrre=LIST case "all", "ret": ctxt.Retpoline = true } ctxt.Bso = bufio.NewWriter(os.Stdout)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 2.7K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/amd64error.s
// AVX512GATHER index/index #UD cases. VPGATHERQQ (BP)(X2*2), K1, X2 // ERROR "index and destination registers should be distinct" VPGATHERQQ (BP)(Y15*2), K1, Y15 // ERROR "index and destination registers should be distinct" VPGATHERQQ (BP)(Z20*2), K1, Z20 // ERROR "index and destination registers should be distinct" VPGATHERDQ (BP)(X2*2), K1, X2 // ERROR "index and destination registers should be distinct"
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jun 14 00:03:57 GMT 2023 - 8.9K bytes - Viewed (0) -
src/bytes/reader.go
// Unlike a [Buffer], a Reader is read-only and supports seeking. // The zero value for Reader operates like a Reader of an empty slice. type Reader struct { s []byte i int64 // current reading index prevRune int // index of previous rune; or < 0 } // Len returns the number of bytes of the unread portion of the // slice. func (r *Reader) Len() int { if r.i >= int64(len(r.s)) { return 0 }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 17:10:31 GMT 2023 - 3.9K bytes - Viewed (1) -
src/cmd/asm/internal/asm/testdata/amd64.s
// Intel pseudonyms for our own renamings. PADDD M2, M1 // PADDL M2, M1 MOVDQ2Q X1, M1 // MOVQ X1, M1 MOVNTDQ X1, (AX) // MOVNTO X1, (AX) MOVOA (AX), X1 // MOVO (AX), X1 // Tests for SP indexed addresses. MOVQ foo(SP)(AX*1), BX // 488b1c04 MOVQ foo+32(SP)(CX*2), DX // 488b544c20 MOVQ foo+32323(SP)(R8*4), R9 // 4e8b8c84437e0000 MOVL foo(SP)(SI*8), DI // 8b3cf4 MOVL foo+32(SP)(R10*1), R11 // 468b5c1420
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Apr 09 18:57:21 GMT 2019 - 3.3K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex_test.go
"\n.\n.MOVBLZX.(.8.*.4.).(.R12.).,.AX.\n.ADDB.AX.,.DX.\n", }, { "nested multiline macro", lines( "#define KEYROUND(xmm, load, off, r1, r2, index) \\", "\tMOVBLZX (BP)(DX*4), R8 \\", "\tload((off+1), r2) \\", "\tMOVB R8, (off*4)(R12) \\", "\tPINSRW $index, (BP)(R8*4), xmm", "#define LOAD(off, reg) \\", "\tMOVBLZX (off*4)(R12), reg \\", "\tADDB reg, DX", "KEYROUND(X0, LOAD, 8, AX, BX, 0)",
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 5.8K bytes - Viewed (0)