| 100 | } |
| 101 | |
| 102 | int cbm_nprocs(void) { |
| 103 | SYSTEM_INFO si; |
| 104 | GetSystemInfo(&si); |
| 105 | return (int)si.dwNumberOfProcessors > 0 ? (int)si.dwNumberOfProcessors : 1; |
| 106 | } |
| 107 | |
| 108 | bool cbm_file_exists(const char *path) { |
| 109 | wchar_t *wpath = cbm_utf8_to_wide(path); |