- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for lzcntl (0.23 sec)
-
test/codegen/mathbits.go
// amd64/v1,amd64/v2:"BSRQ","LEAQ",-"CMOVQEQ" // amd64/v3: "LZCNTL",- "BSRL" // s390x:"FLOGR" // arm:"CLZ" arm64:"CLZW" // mips:"CLZ" // wasm:"I64Clz" // ppc64x:"CNTLZW" return bits.LeadingZeros32(n) } func LeadingZeros16(n uint16) int { // amd64/v1,amd64/v2:"BSRL","LEAL",-"CMOVQEQ" // amd64/v3: "LZCNTL",- "BSRL" // s390x:"FLOGR" // arm:"CLZ" arm64:"CLZ" // mips:"CLZ"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:51:17 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/AMD64.rules
// Use 64-bit version to allow const-fold remove unnecessary arithmetic. (BitLen32 <t> x) && buildcfg.GOAMD64 >= 3 => (NEGQ (ADDQconst <t> [-32] (LZCNTL x))) (BitLen16 <t> x) && buildcfg.GOAMD64 >= 3 => (NEGQ (ADDQconst <t> [-32] (LZCNTL (MOVWQZX <x.Type> x)))) (BitLen8 <t> x) && buildcfg.GOAMD64 >= 3 => (NEGQ (ADDQconst <t> [-32] (LZCNTL (MOVBQZX <x.Type> x))))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 19:38:41 UTC 2024 - 93.9K bytes - Viewed (0) -
src/syscall/flock_bsd.go
// license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || netbsd || openbsd package syscall import "unsafe" // FcntlFlock performs a fcntl syscall for the [F_GETLK], [F_SETLK] or [F_SETLKW] command. func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { _, err := fcntlPtr(int(fd), cmd, unsafe.Pointer(lk)) return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 475 bytes - Viewed (0) -
src/syscall/flock_linux_32bit.go
// license that can be found in the LICENSE file. //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) package syscall func init() { // On 32-bit Linux systems, the fcntl syscall that matches Go's // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. fcntl64Syscall = SYS_FCNTL64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 15 21:35:49 UTC 2024 - 421 bytes - Viewed (0) -
src/syscall/linkname_darwin.go
// used by internal/poll //go:linkname fdopendir // used by internal/syscall/unix //go:linkname unlinkat //go:linkname openat //go:linkname fstatat // used by cmd/link //go:linkname msync
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 468 bytes - Viewed (0) -
src/runtime/os_aix.go
} return ts.tv_sec, int32(ts.tv_nsec) } //go:nosplit func fcntl(fd, cmd, arg int32) (int32, int32) { r, errno := syscall3(&libc_fcntl, uintptr(fd), uintptr(cmd), uintptr(arg)) return int32(r), int32(errno) } //go:nosplit func setNonblock(fd int32) { flags, _ := fcntl(fd, _F_GETFL, 0) if flags != -1 { fcntl(fd, _F_SETFL, flags|_O_NONBLOCK) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.9K bytes - Viewed (0) -
src/runtime/linkname_unix.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix package runtime import _ "unsafe" // used in internal/syscall/unix
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 266 bytes - Viewed (0) -
src/net/sock_cloexec_solaris.go
// Support for SOCK_* flags as part of the type parameter was added to Oracle // Solaris in the 11.4 release. Thus, on releases prior to 11.4, we fall back // to the combination of socket(3c) and fcntl(2). package net import ( "internal/poll" "internal/syscall/unix" "os" "syscall" ) // Wrapper around the socket system call that marks the returned file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 1.4K bytes - Viewed (0) -
src/syscall/flock_linux.go
import "unsafe" // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux // systems by flock_linux_32bit.go to be SYS_FCNTL64. var fcntl64Syscall uintptr = SYS_FCNTL // FcntlFlock performs a fcntl syscall for the [F_GETLK], [F_SETLK] or [F_SETLKW] command. func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) if errno == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 647 bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewriteAMD64.go
v1.AddArg(x) v0.AddArg2(v1, v1) v.AddArg(v0) return true } // match: (BitLen16 <t> x) // cond: buildcfg.GOAMD64 >= 3 // result: (NEGQ (ADDQconst <t> [-32] (LZCNTL (MOVWQZX <x.Type> x)))) for { t := v.Type x := v_0 if !(buildcfg.GOAMD64 >= 3) { break } v.reset(OpAMD64NEGQ) v0 := b.NewValue0(v.Pos, OpAMD64ADDQconst, t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 19:38:41 UTC 2024 - 712.7K bytes - Viewed (0)