- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 552 for IOTA (0.07 sec)
-
src/go/doc/testdata/examples/iota.go
package foo_test const ( a = iota b ) const ( c = 3 d = 4 ) const ( e = iota f ) // The example refers to only one of the constants in the iota group, but we // must keep all of them because of the iota. The second group of constants can // be trimmed. The third has an iota, but is unused, so it can be eliminated. func Example() { _ = b _ = d
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 23:13:45 UTC 2022 - 596 bytes - Viewed (0) -
src/go/doc/testdata/examples/iota.golden
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 23:13:45 UTC 2022 - 158 bytes - Viewed (0) -
src/internal/types/testdata/check/const0.go
type _ [iota /* ERROR "iota outside constant decl" */ ]byte var _ = iota /* ERROR "iota outside constant decl" */ func _() { _ = iota /* ERROR "iota outside constant decl" */ const _ = iota _ = iota /* ERROR "iota outside constant decl" */ } func _() { iota := 123 const x = iota /* ERROR "is not constant" */ var y = iota _ = y }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 9.2K bytes - Viewed (0) -
src/internal/types/testdata/check/constdecl.go
const ( c = len([1 - iota]int{}) d e // ERROR "invalid array length" f // ERROR "invalid array length" ) // Test that identifiers in implicit (omitted) RHS // expressions of constant declarations are resolved // in the correct context; see issues #49157, #53585. const X = 2 func _() { const ( A = iota // 0 iota = iota // 1 B // 1 (iota is declared locally on prev. line)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 3.7K bytes - Viewed (0) -
test/const8.go
package main const X = 2 func main() { const ( A = iota // 0 iota = iota // 1 B // 1 (iota is declared locally on prev. line) C // 1 ) if A != 0 || B != 1 || C != 1 { println("got", A, B, C, "want 0 1 1") panic("FAILED") } const ( X = X + X Y Z = iota ) if X != 4 || Y != 8 || Z != 1 { println("got", X, Y, Z, "want 4 8 1")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 28 18:11:31 UTC 2022 - 727 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc
return false; } } return true; } // It returns "true" when Value $iota is obtained from the following mlir code: // // $iota = "mhlo.iota"(){iota_dimension = $dimensions[0]}, // // where $dimensions must have size 1 and iota can have rank>=1. // It usually used for matching rank 1 iota since the iotaOp will be folded to // IotaOp + BroadCastInDimOp except for the case when result shape is rank 1.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0) -
test/fixedbugs/issue52438.go
// license that can be found in the LICENSE file. package main const c1 = iota const c2 = iota const c3 = 0 + iota<<8 const c4 = 1 + iota<<8 func main() { if c1 != 0 { panic(c1) } if c2 != 0 { panic(c2) } if c3 != 0 { panic(c3) } if c4 != 1 { panic(c4) } const c5 = iota const c6 = iota if c5 != 0 { panic(c5) } if c6 != 0 { panic(c6) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 23:20:21 UTC 2022 - 489 bytes - Viewed (0) -
src/cmd/compile/internal/noder/codes.go
const ( assignBlank codeAssign = iota assignDef assignExpr ) // A codeDecl distinguishes among declaration encodings. type codeDecl int func (c codeDecl) Marker() pkgbits.SyncMarker { return pkgbits.SyncDecl } func (c codeDecl) Value() int { return int(c) } const ( declEnd codeDecl = iota declFunc declMethod declVar declOther
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 20:07:46 UTC 2023 - 1.9K bytes - Viewed (0) -
src/syscall/net_fake.go
package syscall const ( AF_UNSPEC = iota AF_UNIX AF_INET AF_INET6 ) const ( SOCK_STREAM = 1 + iota SOCK_DGRAM SOCK_RAW SOCK_SEQPACKET ) const ( IPPROTO_IP = 0 IPPROTO_IPV4 = 4 IPPROTO_IPV6 = 0x29 IPPROTO_TCP = 6 IPPROTO_UDP = 0x11 ) const ( SOMAXCONN = 0x80 ) const ( _ = iota IPV6_V6ONLY SO_ERROR )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 883 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.h
namespace mlir { namespace odml { // The following 5 different forms of mhlo::iota will be matched: // 1. IotaOp. // 2. IotaOp + BroadCastInDim. // 3. IotaOp + Reshape. // 4. Constant (folded Iota) + BroadCastInDim. // 5. Constant (folded result). // Moreover, the dimensions has to match the iota_dimension. bool MatchIota(DenseIntElementsAttr dimensions, Value iota); } // namespace odml } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 1.4K bytes - Viewed (0)