| 148 | } |
| 149 | |
| 150 | int cbm_nprocs(void) { |
| 151 | SYSTEM_INFO si; |
| 152 | GetSystemInfo(&si); |
| 153 | return (int)si.dwNumberOfProcessors > 0 ? (int)si.dwNumberOfProcessors : 1; |
| 154 | } |
| 155 | |
| 156 | bool cbm_file_exists(const char *path) { |
| 157 | wchar_t *wpath = cbm_path_to_wide(path); |