Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsimd.cpp File Reference

(1ac0cfaa2631a639768199fb18a0e0fd9163ac6d)

#include "qsimd_p.h"
#include "qalgorithms.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
+ Include dependency graph for qsimd.cpp:

Go to the source code of this file.

Macros

#define __INTEL_COMPILER_USE_INTRINSIC_PROTOTYPES
 
#define QT_FUNCTION_TARGET_BASELINE
 

Functions

template<typename T, uint N>
QT_BEGIN_NAMESPACE QT_FUNCTION_TARGET_BASELINE uint arraysize (T(&)[N])
 
static uint detectProcessorFeatures ()
 
 Q_ATOMIC (QCpuFeatureType) QT_MANGLE_NAMESPACE(qt_cpu_features)[1] = { 0 }
 
QT_FUNCTION_TARGET_BASELINE uint64_t QT_MANGLE_NAMESPACE qDetectCpuFeatures ()
 
QT_FUNCTION_TARGET_BASELINE void qDumpCPUFeatures ()
 

Variables

static const char features_string [] = ""
 
static const int features_indices [] = { 0 }
 
static const quint64 minFeature = qCompilerCpuFeatures
 
static constexpr auto SimdInitialized = QCpuFeatureType(1) << (sizeof(QCpuFeatureType) * 8 - 1)
 

Macro Definition Documentation

◆ __INTEL_COMPILER_USE_INTRINSIC_PROTOTYPES

#define __INTEL_COMPILER_USE_INTRINSIC_PROTOTYPES

Definition at line 6 of file qsimd.cpp.

◆ QT_FUNCTION_TARGET_BASELINE

#define QT_FUNCTION_TARGET_BASELINE

Definition at line 24 of file qsimd.cpp.

Function Documentation

◆ arraysize()

template<typename T, uint N>
QT_BEGIN_NAMESPACE QT_FUNCTION_TARGET_BASELINE uint arraysize ( T(&) [N])

Definition at line 67 of file qsimd.cpp.

◆ detectProcessorFeatures()

static uint detectProcessorFeatures ( )
inlinestatic

Definition at line 623 of file qsimd.cpp.

◆ Q_ATOMIC()

Q_ATOMIC ( QCpuFeatureType ) )[1] = { 0 }

◆ qDetectCpuFeatures()

QT_FUNCTION_TARGET_BASELINE uint64_t QT_MANGLE_NAMESPACE qDetectCpuFeatures ( )

Definition at line 636 of file qsimd.cpp.

References features_indices, features_string, and SimdInitialized.

◆ qDumpCPUFeatures()

QT_FUNCTION_TARGET_BASELINE void qDumpCPUFeatures ( )

Definition at line 688 of file qsimd.cpp.

References features_indices, features_string, and qCompilerCpuFeatures.

Variable Documentation

◆ features_indices

static const int features_indices = { 0 }
static

Definition at line 118 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

◆ features_string

static const char features_string = ""
static

Definition at line 117 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

◆ minFeature

static const quint64 minFeature = qCompilerCpuFeatures
static

Definition at line 630 of file qsimd.cpp.

◆ SimdInitialized

static constexpr auto SimdInitialized = QCpuFeatureType(1) << (sizeof(QCpuFeatureType) * 8 - 1)
staticconstexpr

Definition at line 632 of file qsimd.cpp.

Referenced by qDetectCpuFeatures().