Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for Alignof (0.45 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    			log.Printf("unknown architecture %s", arch.name)
    		}
    		arch.intSize = int(arch.sizes.Sizeof(types.Typ[types.Int]))
    		arch.ptrSize = int(arch.sizes.Sizeof(types.Typ[types.UnsafePointer]))
    		arch.maxAlign = int(arch.sizes.Alignof(types.Typ[types.Int64]))
    	}
    }
    
    var (
    	re           = regexp.MustCompile
    	asmPlusBuild = re(`//\s+\+build\s+([^\n]+)`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    	case *ast.Ident:
    		id = fun
    	case *ast.SelectorExpr:
    		id = fun.Sel
    	}
    	if fun, ok := pass.TypesInfo.Uses[id].(*types.Builtin); ok {
    		switch fun.Name() {
    		case "new", "len", "cap", "Sizeof", "Offsetof", "Alignof":
    			return
    		}
    	}
    	for _, x := range ce.Args {
    		if path := lockPathRhs(pass, x); path != nil {
    			pass.ReportRangef(x, "call of %s copies lock value: %v", analysisutil.Format(pass.Fset, ce.Fun), path)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. api/go1.5.txt

    pkg go/types, type Scope struct
    pkg go/types, type Selection struct
    pkg go/types, type SelectionKind int
    pkg go/types, type Signature struct
    pkg go/types, type Sizes interface { Alignof, Offsetsof, Sizeof }
    pkg go/types, type Sizes interface, Alignof(Type) int64
    pkg go/types, type Sizes interface, Offsetsof([]*Var) []int64
    pkg go/types, type Sizes interface, Sizeof(Type) int64
    pkg go/types, type Slice struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/cc_op_gen_util.cc

          // Keywords obtained from http://en.cppreference.com/w/cpp/keyword
          kCPPReserved = new absl::flat_hash_set<StringPiece, StringPieceHasher>{
              "alignas",
              "alignof",
              "and",
              "and_eq",
              "asm",
              "atomic_cancel",
              "atomic_commit",
              "atomic_noexcept",
              "auto",
              "bitand",
              "bitor",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    <li>For a variable <code>x</code> of any type: <code>unsafe.Alignof(x)</code> is at least 1.
    </li>
    
    <li>For a variable <code>x</code> of struct type: <code>unsafe.Alignof(x)</code> is the largest of
       all the values <code>unsafe.Alignof(x.f)</code> for each field <code>f</code> of <code>x</code>, but at least 1.
    </li>
    
    <li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/crypto/md5/md5_test.go

    var sum = make([]byte, bench.Size())
    
    func benchmarkSize(b *testing.B, size int, unaligned bool) {
    	b.SetBytes(int64(size))
    	buf := buf
    	if unaligned {
    		if uintptr(unsafe.Pointer(&buf[0]))&(unsafe.Alignof(uint32(0))-1) == 0 {
    			buf = buf[1:]
    		}
    	}
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bench.Reset()
    		bench.Write(buf[:size])
    		bench.Sum(sum[:0])
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 23 16:54:46 UTC 2021
    - 17.4K bytes
    - Viewed (0)
  7. doc/go_spec.html

    <li>For a variable <code>x</code> of any type: <code>unsafe.Alignof(x)</code> is at least 1.
    </li>
    
    <li>For a variable <code>x</code> of struct type: <code>unsafe.Alignof(x)</code> is the largest of
       all the values <code>unsafe.Alignof(x.f)</code> for each field <code>f</code> of <code>x</code>, but at least 1.
    </li>
    
    <li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	"aN": {"&=", 2, precAssign},
    	"aS": {"=", 2, precAssign},
    	"aa": {"&&", 2, precLogicalAnd},
    	"ad": {"&", 1, precUnary},
    	"an": {"&", 2, precAnd},
    	"at": {"alignof ", 1, precUnary},
    	"aw": {"co_await ", 1, precPrimary},
    	"az": {"alignof ", 1, precUnary},
    	"cc": {"const_cast", 2, precPostfix},
    	"cl": {"()", 2, precPostfix},
    	// cp is not in the ABI but is used by clang "when the call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    				wantParens = true
    			case op.Name == `operator"" `:
    				wantParens = false
    			case op.Name == "&":
    				wantParens = false
    			case isDelete:
    				wantParens = false
    			case op.Name == "alignof ":
    				wantParens = true
    			case op.Name == "sizeof ":
    				wantParens = true
    			case op.Name == "typeid ":
    				wantParens = true
    			default:
    				wantParens = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Signature).Underlying", Method, 5},
    		{"(*Signature).Variadic", Method, 5},
    		{"(*Slice).Elem", Method, 5},
    		{"(*Slice).String", Method, 5},
    		{"(*Slice).Underlying", Method, 5},
    		{"(*StdSizes).Alignof", Method, 5},
    		{"(*StdSizes).Offsetsof", Method, 5},
    		{"(*StdSizes).Sizeof", Method, 5},
    		{"(*Struct).Field", Method, 5},
    		{"(*Struct).NumFields", Method, 5},
    		{"(*Struct).String", Method, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top