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

(e72d6e46282e476290e657a434ceeeaea40625f7)

#include "qsimd_p.h"
#include "qalgorithms.h"
#include <stdio.h>
#include <stdlib.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 7 of file qsimd.cpp.

◆ QT_FUNCTION_TARGET_BASELINE

#define QT_FUNCTION_TARGET_BASELINE

Definition at line 26 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 69 of file qsimd.cpp.

◆ detectProcessorFeatures()

uint detectProcessorFeatures ( )
inlinestatic

Definition at line 618 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

Here is the caller graph for this function:

◆ Q_ATOMIC()

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

◆ qDetectCpuFeatures()

QT_FUNCTION_TARGET_BASELINE uint64_t QT_MANGLE_NAMESPACE qDetectCpuFeatures ( )

Definition at line 631 of file qsimd.cpp.

References detectProcessorFeatures(), features_indices, features_string, and SimdInitialized.

Here is the call graph for this function:

◆ qDumpCPUFeatures()

QT_FUNCTION_TARGET_BASELINE void qDumpCPUFeatures ( )

Definition at line 683 of file qsimd.cpp.

References detectProcessorFeatures(), features_indices, features_string, qCompilerCpuFeatures, and SimdInitialized.

Here is the call graph for this function:

Variable Documentation

◆ features_indices

const int features_indices = { 0 }
static

Definition at line 120 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

◆ features_string

const char features_string = ""
static

Definition at line 119 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().

◆ minFeature

const quint64 minFeature = qCompilerCpuFeatures
static

Definition at line 625 of file qsimd.cpp.

◆ SimdInitialized

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

Definition at line 627 of file qsimd.cpp.

Referenced by qDetectCpuFeatures(), and qDumpCPUFeatures().