diff options
author | jhb <jhb@FreeBSD.org> | 2010-06-11 15:56:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-06-11 15:56:18 +0000 |
commit | ab25f8e13afd25fa86f75b8f51724e49ab9d83e8 (patch) | |
tree | e699e8a92c3bc44d9fcd215e07c348dacb906644 /contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp | |
parent | 6a3535c3fa18af41cdca53d39cc5cfa30c33b489 (diff) | |
download | FreeBSD-src-ab25f8e13afd25fa86f75b8f51724e49ab9d83e8.zip FreeBSD-src-ab25f8e13afd25fa86f75b8f51724e49ab9d83e8.tar.gz |
Add helper macros to iterate over available CPUs in the system.
CPU_FOREACH(i) iterates over the CPU IDs of all available CPUs. The
CPU_FIRST() and CPU_NEXT(i) macros can also be used to iterate over
available CPU IDs. CPU_NEXT(i) wraps around to CPU_FIRST() rather than
returning some sort of terminator.
Requested by: rwatson
Reviewed by: attilio
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions