Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /usr/include/bits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/include/bits/cpu-set.h
/* Definition of the cpu_set_t structure used by the POSIX 1003.1b-1993
   scheduling interface.
   Copyright (C) 1996-2018 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <http://www.gnu.org/licenses/>.  */

#ifndef _BITS_CPU_SET_H
#define _BITS_CPU_SET_H 1

#ifndef _SCHED_H
# error "Never include <bits/cpu-set.h> directly; use <sched.h> instead."
#endif

/* Size definition for CPU sets.  */
#define __CPU_SETSIZE	1024
#define __NCPUBITS	(8 * sizeof (__cpu_mask))

/* Type for array elements in 'cpu_set_t'.  */
typedef __CPU_MASK_TYPE __cpu_mask;

/* Basic access functions.  */
#define __CPUELT(cpu)	((cpu) / __NCPUBITS)
#define __CPUMASK(cpu)	((__cpu_mask) 1 << ((cpu) % __NCPUBITS))

/* Data structure to describe CPU mask.  */
typedef struct
{
  __cpu_mask __bits[__CPU_SETSIZE / __NCPUBITS];
} cpu_set_t;

/* Access functions for CPU masks.  */
#if __GNUC_PREREQ (2, 91)
# define __CPU_ZERO_S(setsize, cpusetp) \
  do __builtin_memset (cpusetp, '\0', setsize); while (0)
#else
# define __CPU_ZERO_S(setsize, cpusetp) \
  do {									      \
    size_t __i;								      \
    size_t __imax = (setsize) / sizeof (__cpu_mask);			      \
    __cpu_mask *__bits = (cpusetp)->__bits;				      \
    for (__i = 0; __i < __imax; ++__i)					      \
      __bits[__i] = 0;							      \
  } while (0)
#endif
#define __CPU_SET_S(cpu, setsize, cpusetp) \
  (__extension__							      \
   ({ size_t __cpu = (cpu);						      \
      __cpu / 8 < (setsize)						      \
      ? (((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)]		      \
	 |= __CPUMASK (__cpu))						      \
      : 0; }))
#define __CPU_CLR_S(cpu, setsize, cpusetp) \
  (__extension__							      \
   ({ size_t __cpu = (cpu);						      \
      __cpu / 8 < (setsize)						      \
      ? (((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)]		      \
	 &= ~__CPUMASK (__cpu))						      \
      : 0; }))
#define __CPU_ISSET_S(cpu, setsize, cpusetp) \
  (__extension__							      \
   ({ size_t __cpu = (cpu);						      \
      __cpu / 8 < (setsize)						      \
      ? ((((const __cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)]	      \
	  & __CPUMASK (__cpu))) != 0					      \
      : 0; }))

#define __CPU_COUNT_S(setsize, cpusetp) \
  __sched_cpucount (setsize, cpusetp)

#if __GNUC_PREREQ (2, 91)
# define __CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \
  (__builtin_memcmp (cpusetp1, cpusetp2, setsize) == 0)
#else
# define __CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \
  (__extension__							      \
   ({ const __cpu_mask *__arr1 = (cpusetp1)->__bits;			      \
      const __cpu_mask *__arr2 = (cpusetp2)->__bits;			      \
      size_t __imax = (setsize) / sizeof (__cpu_mask);			      \
      size_t __i;							      \
      for (__i = 0; __i < __imax; ++__i)				      \
	if (__arr1[__i] != __arr2[__i])					      \
	  break;							      \
      __i == __imax; }))
#endif

#define __CPU_OP_S(setsize, destset, srcset1, srcset2, op) \
  (__extension__							      \
   ({ cpu_set_t *__dest = (destset);					      \
      const __cpu_mask *__arr1 = (srcset1)->__bits;			      \
      const __cpu_mask *__arr2 = (srcset2)->__bits;			      \
      size_t __imax = (setsize) / sizeof (__cpu_mask);			      \
      size_t __i;							      \
      for (__i = 0; __i < __imax; ++__i)				      \
	((__cpu_mask *) __dest->__bits)[__i] = __arr1[__i] op __arr2[__i];    \
      __dest; }))

#define __CPU_ALLOC_SIZE(count) \
  ((((count) + __NCPUBITS - 1) / __NCPUBITS) * sizeof (__cpu_mask))
#define __CPU_ALLOC(count) __sched_cpualloc (count)
#define __CPU_FREE(cpuset) __sched_cpufree (cpuset)

__BEGIN_DECLS

extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
     __THROW;
extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur;
extern void __sched_cpufree (cpu_set_t *__set) __THROW;

__END_DECLS

#endif /* bits/cpu-set.h */
Name
Size
Permissions
Options
types
--
drwxr-xr-x
a.out.h
0.262 KB
-rw-r--r--
byteswap.h
2.392 KB
-rw-r--r--
cmathcalls.h
4.041 KB
-rw-r--r--
confname.h
23.152 KB
-rw-r--r--
cpu-set.h
4.409 KB
-rw-r--r--
dirent.h
1.729 KB
-rw-r--r--
dlfcn.h
2.461 KB
-rw-r--r--
elfclass.h
0.416 KB
-rw-r--r--
endian.h
0.172 KB
-rw-r--r--
environments.h
3.701 KB
-rw-r--r--
epoll.h
1.045 KB
-rw-r--r--
errno.h
1.392 KB
-rw-r--r--
error.h
2.62 KB
-rw-r--r--
eventfd.h
1.102 KB
-rw-r--r--
fcntl-linux.h
13.391 KB
-rw-r--r--
fcntl.h
2.192 KB
-rw-r--r--
fcntl2.h
5.443 KB
-rw-r--r--
fenv.h
4.497 KB
-rw-r--r--
fenvinline.h
0.186 KB
-rw-r--r--
floatn-common.h
9.535 KB
-rw-r--r--
floatn.h
4.27 KB
-rw-r--r--
flt-eval-method.h
1.186 KB
-rw-r--r--
fp-fast.h
1.187 KB
-rw-r--r--
fp-logb.h
0.987 KB
-rw-r--r--
getopt_core.h
3.58 KB
-rw-r--r--
getopt_ext.h
2.966 KB
-rw-r--r--
getopt_posix.h
1.767 KB
-rw-r--r--
hwcap.h
0.948 KB
-rw-r--r--
in.h
9.244 KB
-rw-r--r--
indirect-return.h
1.548 KB
-rw-r--r--
initspin.h
0.024 KB
-rw-r--r--
inotify.h
1.054 KB
-rw-r--r--
ioctl-types.h
2.397 KB
-rw-r--r--
ioctls.h
4.372 KB
-rw-r--r--
ipc.h
2.021 KB
-rw-r--r--
ipctypes.h
1.147 KB
-rw-r--r--
iscanonical.h
2.42 KB
-rw-r--r--
libc-header-start.h
2.546 KB
-rw-r--r--
libm-simd-decl-stubs.h
2.933 KB
-rw-r--r--
link.h
4.185 KB
-rw-r--r--
link_lavcurrent.h
1.073 KB
-rw-r--r--
local_lim.h
3.109 KB
-rw-r--r--
locale.h
1.335 KB
-rw-r--r--
long-double.h
0.901 KB
-rw-r--r--
math-finite.h
5.248 KB
-rw-r--r--
math-vector.h
2.253 KB
-rw-r--r--
mathcalls-helper-functions.h
1.723 KB
-rw-r--r--
mathcalls-narrow.h
1.275 KB
-rw-r--r--
mathcalls.h
12.793 KB
-rw-r--r--
mathdef.h
0.869 KB
-rw-r--r--
mathinline.h
12.71 KB
-rw-r--r--
mman-linux.h
4.78 KB
-rw-r--r--
mman-shared.h
2.672 KB
-rw-r--r--
mman.h
2.015 KB
-rw-r--r--
monetary-ldbl.h
1.021 KB
-rw-r--r--
mqueue.h
1.216 KB
-rw-r--r--
mqueue2.h
2.1 KB
-rw-r--r--
msq.h
2.575 KB
-rw-r--r--
netdb.h
1.233 KB
-rw-r--r--
param.h
1.398 KB
-rw-r--r--
poll.h
2.026 KB
-rw-r--r--
poll2.h
2.427 KB
-rw-r--r--
posix1_lim.h
5.066 KB
-rw-r--r--
posix2_lim.h
2.799 KB
-rw-r--r--
posix_opt.h
5.631 KB
-rw-r--r--
printf-ldbl.h
0.968 KB
-rw-r--r--
pthreadtypes-arch.h
3.213 KB
-rw-r--r--
pthreadtypes.h
2.999 KB
-rw-r--r--
ptrace-shared.h
2.832 KB
-rw-r--r--
resource.h
6.15 KB
-rw-r--r--
sched.h
3.659 KB
-rw-r--r--
select.h
2.056 KB
-rw-r--r--
select2.h
1.403 KB
-rw-r--r--
sem.h
2.558 KB
-rw-r--r--
semaphore.h
1.208 KB
-rw-r--r--
setjmp.h
1.256 KB
-rw-r--r--
setjmp2.h
1.664 KB
-rw-r--r--
shm.h
3.507 KB
-rw-r--r--
sigaction.h
2.865 KB
-rw-r--r--
sigcontext.h
4.164 KB
-rw-r--r--
sigevent-consts.h
1.436 KB
-rw-r--r--
siginfo-arch.h
0.712 KB
-rw-r--r--
siginfo-consts-arch.h
0.199 KB
-rw-r--r--
siginfo-consts.h
5.833 KB
-rw-r--r--
signalfd.h
1.041 KB
-rw-r--r--
signum-generic.h
4.238 KB
-rw-r--r--
signum.h
1.595 KB
-rw-r--r--
sigstack.h
1.14 KB
-rw-r--r--
sigthread.h
1.651 KB
-rw-r--r--
sockaddr.h
1.478 KB
-rw-r--r--
socket.h
15.197 KB
-rw-r--r--
socket2.h
2.965 KB
-rw-r--r--
socket_type.h
2.163 KB
-rw-r--r--
ss_flags.h
1.159 KB
-rw-r--r--
stab.def
8.827 KB
-rw-r--r--
stat.h
7.44 KB
-rw-r--r--
statfs.h
1.871 KB
-rw-r--r--
statvfs.h
3.342 KB
-rw-r--r--
statx-generic.h
2.001 KB
-rw-r--r--
statx.h
1.366 KB
-rw-r--r--
stdint-intn.h
1.012 KB
-rw-r--r--
stdint-uintn.h
1.023 KB
-rw-r--r--
stdio-ldbl.h
2.942 KB
-rw-r--r--
stdio.h
5.455 KB
-rw-r--r--
stdio2.h
12.252 KB
-rw-r--r--
stdio_lim.h
1.184 KB
-rw-r--r--
stdlib-bsearch.h
1.345 KB
-rw-r--r--
stdlib-float.h
1.088 KB
-rw-r--r--
stdlib-ldbl.h
1.34 KB
-rw-r--r--
stdlib.h
4.95 KB
-rw-r--r--
string_fortified.h
4.573 KB
-rw-r--r--
strings_fortified.h
1.21 KB
-rw-r--r--
sys_errlist.h
1.187 KB
-rw-r--r--
syscall.h
44.593 KB
-rw-r--r--
sysctl.h
0.877 KB
-rw-r--r--
syslog-ldbl.h
1.177 KB
-rw-r--r--
syslog-path.h
1.035 KB
-rw-r--r--
syslog.h
1.645 KB
-rw-r--r--
sysmacros.h
2.883 KB
-rw-r--r--
termios.h
5.237 KB
-rw-r--r--
thread-shared-types.h
6.577 KB
-rw-r--r--
time.h
2.928 KB
-rw-r--r--
timerfd.h
1.076 KB
-rw-r--r--
timex.h
4.487 KB
-rw-r--r--
types.h
8.14 KB
-rw-r--r--
typesizes.h
3.317 KB
-rw-r--r--
uintn-identity.h
1.505 KB
-rw-r--r--
uio-ext.h
1.877 KB
-rw-r--r--
uio_lim.h
1.352 KB
-rw-r--r--
unistd.h
10.559 KB
-rw-r--r--
utmp.h
3.971 KB
-rw-r--r--
utmpx.h
3.493 KB
-rw-r--r--
utsname.h
1.184 KB
-rw-r--r--
waitflags.h
1.656 KB
-rw-r--r--
waitstatus.h
2.232 KB
-rw-r--r--
wchar-ldbl.h
2.366 KB
-rw-r--r--
wchar.h
1.86 KB
-rw-r--r--
wchar2.h
17.794 KB
-rw-r--r--
wctype-wchar.h
6.153 KB
-rw-r--r--
wordsize.h
0.432 KB
-rw-r--r--
xopen_lim.h
3.767 KB
-rw-r--r--