Warning: This file is not a C or C++ file. It does not have highlighting.

1//===-- Definition of a cpu_set_t type ------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_LIBC_TYPES_CPU_SET_T_H
10#define LLVM_LIBC_TYPES_CPU_SET_T_H
11
12#define __CPU_SETSIZE 1024
13#define __NCPUBITS (8 * sizeof(unsigned long))
14
15typedef struct {
16 // If a processor with more than 1024 CPUs is to be supported in future,
17 // we need to adjust the size of this array.
18 unsigned long __mask[128 / sizeof(unsigned long)];
19} cpu_set_t;
20
21#endif // LLVM_LIBC_TYPES_CPU_SET_T_H
22

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of libc/include/llvm-libc-types/cpu_set_t.h