blender/intern/cycles/util/system.h
Thomas Dinges 2b095c97fa Cycles: Increase minimum target on x86 to SSE4.2
* Compile regular host code with SSE4.2
* Remove the SSE2 kernel, only the SSE4.2 and AVX2 kernel remain

Pull Request: https://projects.blender.org/blender/blender/pulls/118471
2024-02-26 14:49:19 +01:00

31 lines
626 B
C++

/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
*
* SPDX-License-Identifier: Apache-2.0 */
#ifndef __UTIL_SYSTEM_H__
#define __UTIL_SYSTEM_H__
#include <stdint.h>
#include <stdlib.h>
#include <string>
CCL_NAMESPACE_BEGIN
/* Get width in characters of the current console output. */
int system_console_width();
std::string system_cpu_brand_string();
int system_cpu_bits();
bool system_cpu_support_sse42();
bool system_cpu_support_avx2();
size_t system_physical_ram();
/* Get identifier of the currently running process. */
uint64_t system_self_process_id();
CCL_NAMESPACE_END
#endif /* __UTIL_SYSTEM_H__ */