Blender  V2.93
BLI_system.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
19 #include <stdio.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 int BLI_cpu_support_sse2(void);
30 int BLI_cpu_support_sse41(void);
31 void BLI_system_backtrace(FILE *fp);
32 
33 /* Get CPU brand, result is to be MEM_freeN()-ed. */
34 char *BLI_cpu_brand_string(void);
35 
46 void BLI_hostname_get(char *buffer, size_t bufsize);
47 
48 /* Get maximum addressable memory in megabytes. */
51 
52 /* For `getpid`. */
53 #ifdef WIN32
54 # define BLI_SYSTEM_PID_H <process.h>
55 
56 /* void* since we really do not want to drag Windows.h in to get the proper typedef. */
57 void BLI_windows_handle_exception(void *exception);
58 
59 #else
60 # define BLI_SYSTEM_PID_H <unistd.h>
61 #endif
62 
63 #ifdef __cplusplus
64 }
65 #endif
int BLI_cpu_support_sse41(void)
Definition: system.c:153
void BLI_hostname_get(char *buffer, size_t bufsize)
Definition: system.c:166
char * BLI_cpu_brand_string(void)
Definition: system.c:137
int BLI_cpu_support_sse2(void)
Definition: system.c:42
void BLI_system_backtrace(FILE *fp)
Definition: system.c:79
size_t BLI_system_memory_max_in_megabytes(void)
Definition: system.c:182
int BLI_system_memory_max_in_megabytes_int(void)
Definition: system.c:192
__kernel void ccl_constant KernelData ccl_global void ccl_global char ccl_global int ccl_global char ccl_global unsigned int ccl_global float * buffer
void BLI_windows_handle_exception(EXCEPTION_POINTERS *exception)
Definition: system_win32.c:391