2011-04-27 11:58:34 +00:00
|
|
|
/*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Copyright 2011-2013 Blender Foundation
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License
|
2011-04-27 11:58:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __UTIL_SYSTEM_H__
|
|
|
|
#define __UTIL_SYSTEM_H__
|
|
|
|
|
|
|
|
#include "util_string.h"
|
|
|
|
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
int system_cpu_thread_count();
|
|
|
|
string system_cpu_brand_string();
|
2011-09-08 18:58:07 +00:00
|
|
|
int system_cpu_bits();
|
2013-02-04 16:12:37 +00:00
|
|
|
bool system_cpu_support_sse2();
|
|
|
|
bool system_cpu_support_sse3();
|
2013-11-22 13:16:47 +00:00
|
|
|
bool system_cpu_support_sse41();
|
2014-01-16 16:04:11 +00:00
|
|
|
bool system_cpu_support_avx();
|
2011-04-27 11:58:34 +00:00
|
|
|
|
|
|
|
CCL_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif /* __UTIL_SYSTEM_H__ */
|
|
|
|
|