Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for tzcntl (0.18 sec)

  1. test/codegen/mathbits.go

    	i := 0
    	for n != 0 {
    		// amd64/v1,amd64/v2:"BSFL",-"BTSQ"
    		// amd64/v3:"TZCNTL"
    		i += bits.TrailingZeros32(n)
    		n &= n - 1
    	}
    	return i
    }
    
    func IterateBits16(n uint16) int {
    	i := 0
    	for n != 0 {
    		// amd64/v1,amd64/v2:"BSFL",-"BTSL"
    		// amd64/v3:"TZCNTL"
    		// arm64:"RBITW","CLZW",-"ORR"
    		i += bits.TrailingZeros16(n)
    		n &= n - 1
    	}
    	return i
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/internal/poll/sock_cloexec_solaris.go

    // The accept4(3c) function was added to Oracle Solaris in the Solaris 11.4.0
    // release. Thus, on releases prior to 11.4, we fall back to the combination
    // of accept(3c) and fcntl(2).
    
    package poll
    
    import (
    	"internal/syscall/unix"
    	"syscall"
    )
    
    // Wrapper around the accept system call that marks the returned file
    // descriptor as nonblocking and close-on-exec.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/runtime/sys_darwin.go

    // Not used on Darwin, but must be defined.
    func exitThread(wait *atomic.Uint32) {
    	throw("exitThread")
    }
    
    //go:nosplit
    func setNonblock(fd int32) {
    	flags, _ := fcntl(fd, _F_GETFL, 0)
    	if flags != -1 {
    		fcntl(fd, _F_SETFL, flags|_O_NONBLOCK)
    	}
    }
    
    func issetugid() int32 {
    	return libcCall(unsafe.Pointer(abi.FuncPCABI0(issetugid_trampoline)), nil)
    }
    func issetugid_trampoline()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. src/runtime/defs_freebsd.go

    GOARCH=386 go tool cgo -cdefs defs_freebsd.go >defs_freebsd_386.h
    GOARCH=arm go tool cgo -cdefs defs_freebsd.go >defs_freebsd_arm.h
    */
    
    package runtime
    
    /*
    #include <sys/types.h>
    #include <unistd.h>
    #include <fcntl.h>
    #include <sys/time.h>
    #include <signal.h>
    #include <errno.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/ucontext.h>
    #include <sys/umtx.h>
    #include <sys/_umtx.h>
    #include <sys/rtprio.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. src/runtime/defs_darwin.go

    #define __DARWIN_UNIX03 0
    #include <mach/mach_time.h>
    #include <sys/types.h>
    #include <sys/time.h>
    #include <errno.h>
    #include <signal.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <pthread.h>
    #include <fcntl.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    	EAGAIN    = C.EAGAIN
    	ETIMEDOUT = C.ETIMEDOUT
    
    	PROT_NONE  = C.PROT_NONE
    	PROT_READ  = C.PROT_READ
    	PROT_WRITE = C.PROT_WRITE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. src/internal/poll/fd_unix.go

    		r0, err := unix.Fcntl(fd, syscall.F_DUPFD_CLOEXEC, 0)
    		if err == nil {
    			return r0, "", nil
    		}
    		switch err {
    		case syscall.EINVAL, syscall.ENOSYS:
    			// Old kernel, or js/wasm (which returns
    			// ENOSYS). Fall back to the portable way from
    			// now on.
    			dupCloexecUnsupported.Store(true)
    		default:
    			return -1, "fcntl", err
    		}
    	}
    	return dupCloseOnExecOld(fd)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    #include <netinet/ip_mroute.h>
    #include <sys/protosw.h>
    #include <sys/stropts.h>
    #include <sys/mman.h>
    #include <sys/poll.h>
    #include <sys/select.h>
    #include <sys/termio.h>
    #include <termios.h>
    #include <fcntl.h>
    
    #define AF_LOCAL AF_UNIX
    '
    
    includes_Darwin='
    #define _DARWIN_C_SOURCE
    #define KERNEL 1
    #define _DARWIN_USE_64_BIT_INODE
    #define __APPLE_USE_RFC_3542
    #include <stdint.h>
    #include <sys/attr.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
Back to top