Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 481 for iota (0.42 sec)

  1. doc/go_spec.html

    	b = 1 << iota  // b == 2  (iota == 1)
    	c = 3          // c == 3  (iota == 2, unused)
    	d = 1 << iota  // d == 8  (iota == 3)
    )
    
    const (
    	u         = iota * 42  // u == 0     (untyped integer constant)
    	v float64 = iota * 42  // v == 42.0  (float64 constant)
    	w         = iota * 42  // w == 84    (untyped integer constant)
    )
    
    const x = iota  // x == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stmt.go

    	defer func(env environment, indent int) {
    		check.environment = env
    		check.indent = indent
    	}(check.environment, check.indent)
    	check.environment = environment{
    		decl:  decl,
    		scope: sig.scope,
    		iota:  iota,
    		sig:   sig,
    	}
    	check.indent = 0
    
    	check.stmtList(0, body.List)
    
    	if check.hasLabel && !check.conf.IgnoreBranchErrors {
    		check.labels(body)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/go/types/hilbert_test.go

    		for j := 0; j < n; j++ {
    			if j > 0 {
    				g.p(", ")
    			}
    			g.p("h%d_%d", i, j)
    		}
    		if i == 0 {
    			g.p(" = ")
    			for j := 0; j < n; j++ {
    				if j > 0 {
    					g.p(", ")
    				}
    				g.p("1.0/(iota + %d)", j+1)
    			}
    		}
    		g.p("\n")
    	}
    	g.p(")\n\n")
    }
    
    func (g *gen) inverse(n int) {
    	g.p(`// Inverse Hilbert matrix
    const (
    `)
    	for i := 0; i < n; i++ {
    		for j := 0; j < n; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    //
    // The initial map-based implementation was too slow;
    // see https://go-review.googlesource.com/c/tools/+/135655/1/go/ast/inspector/inspector.go#196
    
    import (
    	"go/ast"
    	"math"
    )
    
    const (
    	nArrayType = iota
    	nAssignStmt
    	nBadDecl
    	nBadExpr
    	nBadStmt
    	nBasicLit
    	nBinaryExpr
    	nBlockStmt
    	nBranchStmt
    	nCallExpr
    	nCaseClause
    	nChanType
    	nCommClause
    	nComment
    	nCommentGroup
    	nCompositeLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. src/unicode/graphic.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unicode
    
    // Bit masks for each code point under U+0100, for fast lookup.
    const (
    	pC     = 1 << iota // a control character.
    	pP                 // a punctuation character.
    	pN                 // a numeral.
    	pS                 // a symbolic character.
    	pZ                 // a spacing character.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/resolver.go

    					check.declare(fileScope, nil, pkgName, nopos)
    				}
    
    			case *syntax.ConstDecl:
    				// iota is the index of the current constDecl within the group
    				if first < 0 || s.Group == nil || file.DeclList[index-1].(*syntax.ConstDecl).Group != s.Group {
    					first = index
    					last = nil
    				}
    				iota := constant.MakeInt64(int64(index - first))
    
    				// determine which initialization expressions to use
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/main.go

    		if a.pkg != "" {
    			fmt.Fprintf(w, "%q\n", a.pkg)
    		}
    	}
    	fmt.Fprintln(w, ")")
    
    	// generate Block* declarations
    	fmt.Fprintln(w, "const (")
    	fmt.Fprintln(w, "BlockInvalid BlockKind = iota")
    	for _, a := range archs {
    		fmt.Fprintln(w)
    		for _, d := range a.blocks {
    			fmt.Fprintf(w, "Block%s%s\n", a.Name(), d.name)
    		}
    	}
    	fmt.Fprintln(w, ")")
    
    	// generate block kind string method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    // A position describes what is expected to appear in an argument position.
    type position int
    
    const (
    	// key is an argument position that should hold a string key or an Attr.
    	key position = iota
    	// value is an argument position that should hold a value.
    	value
    	// unknown represents that we do not know if position should hold a key or a value.
    	unknown
    )
    
    func run(pass *analysis.Pass) (any, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. src/runtime/sigqueue.go

    	wanted     [(_NSIG + 31) / 32]uint32
    	ignored    [(_NSIG + 31) / 32]uint32
    	recv       [(_NSIG + 31) / 32]uint32
    	state      atomic.Uint32
    	delivering atomic.Uint32
    	inuse      bool
    }
    
    const (
    	sigIdle = iota
    	sigReceiving
    	sigSending
    )
    
    // sigsend delivers a signal from sighandler to the internal signal delivery queue.
    // It reports whether the signal was sent. If not, the caller typically crashes the program.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. src/time/format.go

    	stdZeroSecond                                  // "05"
    	stdLongYear              = iota + stdNeedDate  // "2006"
    	stdYear                                        // "06"
    	stdPM                    = iota + stdNeedClock // "PM"
    	stdpm                                          // "pm"
    	stdTZ                    = iota                // "MST"
    	stdISO8601TZ                                   // "Z0700"  // prints Z for UTC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
Back to top