- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 272 for Int8 (0.04 sec)
-
test/index.go
"runtime" ) type quad struct { x, y, z, w int } const ( cj = 100011 ci int = 100012 ci8 int8 = 115 ci16 int16 = 10016 ci32 int32 = 100013 ci64 int64 = 100014 ci64big int64 = 1<<31 ci64bigger int64 = 1<<32 chuge = 1<<100 cfgood = 2.0 cfbad = 2.1 cnj = -2 cni int = -3 cni8 int8 = -6 cni16 int16 = -7 cni32 int32 = -4 cni64 int64 = -5 cni64big int64 = -1<<31
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Sep 08 17:28:20 UTC 2019 - 6.4K bytes - Viewed (0) -
test/fixedbugs/issue21655.go
package main func f1(a []int64, i int64) int64 { return a[i+1<<30] } func f2(a []int32, i int64) int32 { return a[i+1<<30] } func f3(a []int16, i int64) int16 { return a[i+1<<30] } func f4(a []int8, i int64) int8 { return a[i+1<<31] } func f5(a []float64, i int64) float64 { return a[i+1<<30] } func f6(a []float32, i int64) float32 { return a[i+1<<30] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 03:53:18 UTC 2017 - 1.5K bytes - Viewed (0) -
src/runtime/testdata/testprog/checkptr.go
} func CheckPtrStringFail() { p := new(byte) sink2 = p sink2 = unsafe.String(p, 100) } func CheckPtrAlignmentNested() { s := make([]int8, 100) p := unsafe.Pointer(&s[0]) n := 9 _ = ((*[10]int8)(unsafe.Pointer((*[10]int64)(unsafe.Pointer(&p)))))[:n:n]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 17:15:15 UTC 2022 - 2.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/allocators.go
Data: unsafe.Pointer(&b[0]), Len: n, Cap: cap(b) * int(scale), } return *(*[]int8)(unsafe.Pointer(&s)) } func (c *Cache) freeInt8Slice(s []int8) { var base int64 var derived int8 scale := unsafe.Sizeof(base) / unsafe.Sizeof(derived) b := unsafeheader.Slice{ Data: unsafe.Pointer(&s[0]), Len: int((uintptr(len(s)) + scale - 1) / scale), Cap: int((uintptr(cap(s)) + scale - 1) / scale),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 15 23:00:54 UTC 2023 - 7.4K bytes - Viewed (0) -
src/go/parser/testdata/linalg.go2
package linalg import "math" // Numeric is type bound that matches any numeric type. // It would likely be in a constraints package in the standard library. type Numeric interface { ~int|~int8|~int16|~int32|~int64| ~uint|~uint8|~uint16|~uint32|~uint64|~uintptr| ~float32|~float64| ~complex64|~complex128 } func DotProduct[T Numeric](s1, s2 []T) T { if len(s1) != len(s2) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 15:34:22 UTC 2021 - 2K bytes - Viewed (0) -
logger/sql.go
// RegEx matches only numeric values var numericPlaceholderRe = regexp.MustCompile(`\$\d+\$`) func isNumeric(k reflect.Kind) bool { switch k { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: return true case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: return true case reflect.Float32, reflect.Float64: return true default:
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 5K bytes - Viewed (0) -
src/internal/fuzz/encoding_test.go
in: `go test fuzz v1 int()`, reject: true, }, { desc: "negative uint", in: `go test fuzz v1 uint(-32)`, reject: true, }, { desc: "int8 too large", in: `go test fuzz v1 int8(1234456)`, reject: true, }, { desc: "multiplication in int value", in: `go test fuzz v1 int(20*5)`, reject: true, }, { desc: "double negation",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 00:20:34 UTC 2024 - 8.2K bytes - Viewed (0) -
test/typeparam/absdiffimp.dir/a.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type Numeric interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~complex64 | ~complex128 } // numericAbs matches numeric types with an Abs method. type numericAbs[T any] interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 00:11:24 UTC 2021 - 2.1K bytes - Viewed (0) -
src/cmd/compile/internal/types/alg.go
// license that can be found in the LICENSE file. package types import "cmd/compile/internal/base" // AlgKind describes the kind of algorithms used for comparing and // hashing a Type. type AlgKind int8 //go:generate stringer -type AlgKind -trimprefix A alg.go const ( AUNK AlgKind = iota ANOEQ // Types cannot be compared ANOALG // implies ANOEQ, and in addition has a part that is marked Noalg
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 15:30:00 UTC 2024 - 2.4K bytes - Viewed (0) -
src/internal/poll/iovec_solaris.go
// license that can be found in the LICENSE file. package poll import ( "syscall" "unsafe" ) func newIovecWithBase(base *byte) syscall.Iovec { return syscall.Iovec{Base: (*int8)(unsafe.Pointer(base))}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 18:06:02 UTC 2022 - 318 bytes - Viewed (0)