Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsimd.cpp File Reference
#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]
 
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 66 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

+ Here is the caller graph for this function:

◆ detectProcessorFeatures()

static uint detectProcessorFeatures ( )
inlinestatic

Definition at line 553 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

+ Here is the caller graph for this function:

◆ Q_ATOMIC()

Q_ATOMIC ( QCpuFeatureType  ) )[1]

◆ qDetectCpuFeatures()

QT_FUNCTION_TARGET_BASELINE uint64_t QT_MANGLE_NAMESPACE() qDetectCpuFeatures ( )

Definition at line 566 of file qsimd.cpp.

References arraysize(), assert, detectProcessorFeatures(), features_indices, features_string, i, minFeature, Q_UINT64_C, Q_UNLIKELY, qAbort(), QT_MANGLE_NAMESPACE, SimdInitialized, str, and token.

Referenced by qCpuFeatures().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDumpCPUFeatures()

QT_FUNCTION_TARGET_BASELINE void qDumpCPUFeatures ( )

Definition at line 623 of file qsimd.cpp.

References arraysize(), detectProcessorFeatures(), features_indices, features_string, i, minFeature, Q_UINT64_C, and qCompilerCpuFeatures.

+ Here is the call graph for this function:

Variable Documentation

◆ features_indices

const int features_indices[] = { 0 }
static

Definition at line 102 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

◆ features_string

const char features_string[] = ""
static

Definition at line 101 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

◆ minFeature

const quint64 minFeature = qCompilerCpuFeatures
static

Definition at line 560 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

◆ SimdInitialized

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

Definition at line 562 of file qsimd.cpp.

Referenced by qDetectCpuFeatures().