Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for mean (0.12 sec)

  1. src/archive/zip/reader.go

    		commentLen:         b.uint16(),
    	}
    	l := int(d.commentLen)
    	if l > len(b) {
    		return nil, 0, errors.New("zip: invalid comment length")
    	}
    	d.comment = string(b[:l])
    
    	// These values mean that the file can be a zip64 file
    	if d.directoryRecords == 0xffff || d.directorySize == 0xffff || d.directoryOffset == 0xffffffff {
    		p, err := findDirectory64End(r, directoryEndOffset)
    		if err == nil && p >= 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/cgo/godefs.go

    // However, we can't do that in cases where the lexer would not insert
    // a semicolon. We only have to worry about cases that can occur in an
    // expression passed through gofmt, which means composite literals and
    // (due to the printer possibly inserting newlines because of position
    // information) operators.
    var gofmtLineReplacer = strings.NewReplacer(
    	// Want to replace \n without ; after everything from
    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)
  4. src/bufio/scan.go

    			advance, token, err := s.split(s.buf[s.start:s.end], s.err != nil)
    			if err != nil {
    				if err == ErrFinalToken {
    					s.token = token
    					s.done = true
    					// When token is not nil, it means the scanning stops
    					// with a trailing token, and thus the return value
    					// should be true to indicate the existence of the token.
    					return token != nil
    				}
    				s.setErr(err)
    				return false
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/asm/internal/lex/input.go

    	}
    	tok = in.Stack.Next()
    	if tok != '\n' {
    		in.Error("unexpected token at end of #line: ", tok)
    	}
    	pos := src.MakePos(in.Base(), uint(in.Line())+1, 1) // +1 because #line nnn means line nnn starts on next line
    	in.Stack.SetBase(src.NewLinePragmaBase(pos, file, objabi.AbsFile(objabi.WorkingDir(), file, *flags.TrimPath), uint(line), 1))
    }
    
    // #undef processing
    func (in *Input) undef() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top