Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Turing (0.05 sec)

  1. src/cmd/cgo/internal/testerrors/ptr_test.go

    	"sync/atomic"
    	"testing"
    )
    
    var tmp = flag.String("tmp", "", "use `dir` for temporary files and do not clean up")
    
    // ptrTest is the tests without the boilerplate.
    type ptrTest struct {
    	name      string   // for reporting
    	c         string   // the cgo comment
    	c1        string   // cgo comment forced into non-export cgo file
    	imports   []string // a list of imports
    	support   string   // supporting functions
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    			testHeader{Header{
    				Typeflag:   TypeXGlobalHeader,
    				PAXRecords: map[string]string{"path": "global1", "mtime": "1500000000.0"},
    			}, nil},
    			testHeader{Header{
    				Typeflag: TypeReg, Name: "file1",
    			}, nil},
    			testHeader{Header{
    				Typeflag:   TypeReg,
    				Name:       "file2",
    				PAXRecords: map[string]string{"path": "file2"},
    			}, nil},
    			testHeader{Header{
    				Typeflag:   TypeXGlobalHeader,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    	// Go string to C string
    	// The C string is allocated in the C heap using malloc.
    	// It is the caller's responsibility to arrange for it to be
    	// freed, such as by calling C.free (be sure to include stdlib.h
    	// if C.free is needed).
    	func C.CString(string) *C.char
    
    	// Go []byte slice to C array
    	// The C array is allocated in the C heap using malloc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    	}
    
    	if string(bytes) != s {
    		t.Errorf("%s: string(buf.Bytes()) == %q, s == %q", testname, string(bytes), s)
    	}
    }
    
    // Fill buf through n writes of string fus.
    // The initial contents of buf corresponds to the string s;
    // the result is the final contents of buf returned as a string.
    func fillString(t *testing.T, testname string, buf *Buffer, s string, n int, fus string) string {
    	check(t, testname+" (fill 1)", buf, s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. src/archive/tar/format.go

    func (f *Format) mayOnlyBe(f2 Format) { *f &= f2 }
    func (f *Format) mustNotBe(f2 Format) { *f &^= f2 }
    
    var formatNames = map[Format]string{
    	formatV7: "V7", FormatUSTAR: "USTAR", FormatPAX: "PAX", FormatGNU: "GNU", formatSTAR: "STAR",
    }
    
    func (f Format) String() string {
    	var ss []string
    	for f2 := Format(1); f2 < formatMax; f2 <<= 1 {
    		if f.has(f2) {
    			ss = append(ss, formatNames[f2])
    		}
    	}
    	switch len(ss) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcshared/cshared_test.go

    	}
    	return string(out)
    }
    
    func runExe(t *testing.T, extraEnv []string, args ...string) string {
    	t.Helper()
    	return run(t, extraEnv, args...)
    }
    
    func runCC(t *testing.T, args ...string) string {
    	t.Helper()
    	// This function is run in parallel, so append to a copy of cc
    	// rather than cc itself.
    	return run(t, nil, append(append([]string(nil), cc...), args...)...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
  7. src/archive/tar/writer.go

    	}
    	return nil
    }
    
    type (
    	stringFormatter func([]byte, string)
    	numberFormatter func([]byte, int64)
    )
    
    // templateV7Plus fills out the V7 fields of a block using values from hdr.
    // It also fills out fields (uname, gname, devmajor, devminor) that are
    // shared in the USTAR, PAX, and GNU formats using the provided formatters.
    //
    // The block returned is only valid until the next call to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. doc/asm.html

    that may not be expressible using a single hardware instruction.
    It implements these forms as multiple instructions, often using the <code>R11</code> register
    to hold temporary values.
    Hand-written assembly can use <code>R11</code>, but doing so requires
    being sure that the linker is not also using it to implement any of the other
    instructions in the function.
    </p>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/operand_test.go

    				}
    			}
    		})
    	}
    }
    
    type operandTest struct {
    	input, output string
    }
    
    type badOperandTest struct {
    	input, error string
    }
    
    // Examples collected by scanning all the assembly in the standard repo.
    
    var amd64OperandTests = []operandTest{
    	{"$(-1.0)", "$(-1.0)"},
    	{"$(0.0)", "$(0.0)"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  10. src/bufio/bufio.go

    			return b.WriteString(string(r))
    		}
    	}
    	size = utf8.EncodeRune(b.buf[b.n:], r)
    	b.n += size
    	return size, nil
    }
    
    // WriteString writes a string.
    // It returns the number of bytes written.
    // If the count is less than len(s), it also returns an error explaining
    // why the write is short.
    func (b *Writer) WriteString(s string) (int, error) {
    	var sw io.StringWriter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
Back to top