diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2018-04-11 11:59:35 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-04-11 11:59:35 +0200 |
commit | 92f4e0500b1a8c138f3fd4539b1a9c76d3185a93 (patch) | |
tree | 02e2cd437550a4bb7217305c1ff7a4d4fb9cea93 /winsup/cygwin/wincap.h | |
parent | 402d68af1a0926bd711a36ceaf3fc07407a2983a (diff) | |
download | newlib-92f4e0500b1a8c138f3fd4539b1a9c76d3185a93.zip newlib-92f4e0500b1a8c138f3fd4539b1a9c76d3185a93.tar.gz newlib-92f4e0500b1a8c138f3fd4539b1a9c76d3185a93.tar.bz2 |
Cygwin: wincap: expose more SYSTEM_INFO members and use as appropriate
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/wincap.h')
-rw-r--r-- | winsup/cygwin/wincap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/wincap.h b/winsup/cygwin/wincap.h index 990a3a4..9dc0000 100644 --- a/winsup/cygwin/wincap.h +++ b/winsup/cygwin/wincap.h @@ -42,6 +42,11 @@ public: void init (); const DWORD cpu_count () const { return system_info.dwNumberOfProcessors; } + const DWORD_PTR cpu_mask () const { return system_info.dwActiveProcessorMask;} + + const WORD cpu_arch () const { return system_info.wProcessorArchitecture; } + const WORD cpu_level () const { return system_info.wProcessorLevel; } + /* The casts to size_t make sure that the returned value has the size of a pointer on any system. This is important when using them for bit mask operations, like in roundup2. */ |