Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for memang (0.14 sec)

  1. src/cmd/cgo/doc.go

    there are restrictions on passing pointers between Go and C.
    
    In this section the term Go pointer means a pointer to memory
    allocated by Go (such as by using the & operator or calling the
    predefined new function) and the term C pointer means a pointer to
    memory allocated by C (such as by a call to C.malloc). Whether a
    pointer is a Go pointer or a C pointer is a dynamic property
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  2. src/arena/arena.go

    of Go values and free that space manually all at once, safely. The purpose
    of this functionality is to improve efficiency: manually freeing memory
    before a garbage collection delays that cycle. Less frequent cycles means
    the CPU cost of the garbage collector is incurred less frequently.
    
    This functionality in this package is mostly captured in the Arena type.
    Arenas allocate large chunks of memory for Go values, so they're likely to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    		t.Errorf("buf5 = %q, want %q", buf5.String(), "recur2")
    	}
    }
    
    func TestReaderDiscard(t *testing.T) {
    	tests := []struct {
    		name     string
    		r        io.Reader
    		bufSize  int // 0 means 16
    		peekSize int
    
    		n int // input to Discard
    
    		want    int   // from Discard
    		wantErr error // from Discard
    
    		wantBuffered int
    	}{
    		{
    			name:         "normal case",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    var b = make([]byte, 1.0<<s)   // 1.0 has type int; len(b) == 1<<33
    
    // The results of the following examples are given for 32-bit ints,
    // which means the shifts will overflow.
    var mm int = 1.0<<s            // 1.0 has type int; mm == 0
    var oo = 1<<s == 2<<s          // 1 and 2 have type int; oo == true
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/arch/arm.go

    	arm.ABGE,
    	arm.ABLT,
    	arm.ABGT,
    	arm.ABLE,
    	arm.AB,
    	obj.ANOP,
    }
    
    // ARMConditionCodes handles the special condition code situation for the ARM.
    // It returns a boolean to indicate success; failure means cond was unrecognized.
    func ARMConditionCodes(prog *obj.Prog, cond string) bool {
    	if cond == "" {
    		return true
    	}
    	bits, ok := ParseARMCondition(cond)
    	if !ok {
    		return false
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Nov 18 17:59:44 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    // string ends with a NUL character. Thus, all n bytes are available for output.
    //
    // If operating in binary mode, this assumes strict GNU binary mode; which means
    // that the first byte can only be either 0x80 or 0xff. Thus, the first byte is
    // equivalent to the sign bit in two's complement form.
    func fitsInBase256(n int, x int64) bool {
    	binBits := uint(n-1) * 8
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/arm64enc.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The cases are auto-generated by disassembler.
    // The uncommented cases means they can be handled by assembler
    // and they are consistent with disassembler decoding.
    // TODO means they cannot be handled by current assembler.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT asmtest(SB),DUPOK|NOSPLIT,$-8
    
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jul 24 01:11:41 GMT 2023
    - 43.9K bytes
    - Viewed (1)
  8. src/bytes/buffer.go

    func (b *Buffer) grow(n int) int {
    	m := b.Len()
    	// If buffer is empty, reset to recover space.
    	if m == 0 && b.off != 0 {
    		b.Reset()
    	}
    	// Try to grow by means of a reslice.
    	if i, ok := b.tryGrowByReslice(n); ok {
    		return i
    	}
    	if b.buf == nil && n <= smallBufferSize {
    		b.buf = make([]byte, n, smallBufferSize)
    		return 0
    	}
    	c := cap(b.buf)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    				sawUnmatchedErrors = true
    			}
    			continue
    		}
    
    		switch filename {
    		case "completed":
    			// Strictly speaking, there is no guarantee that seeing the error at completed:1
    			// (at the end of the file) means we've seen all the errors from earlier in the file,
    			// but usually it does. Certainly if we don't see the completed:1 error, we did
    			// not get all the errors we expected.
    			completed = true
    
    		case "not-declared":
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/expr_test.go

    		} else if !test.atEOF && tok.ScanToken == scanner.EOF {
    			t.Errorf("%d: %q: expected not EOF but at EOF", i, test.input)
    		}
    	}
    }
    
    type badExprTest struct {
    	input string
    	error string // Empty means no error.
    }
    
    var badExprTests = []badExprTest{
    	{"0/0", "division by zero"},
    	{"3/0", "division by zero"},
    	{"(1<<63)/0", "divide of value with high bit set"},
    	{"3%0", "modulo by zero"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
Back to top