Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

cpu_specific

$
0
0

Provides the ability to declare that a version of a function is targeted at particular type(s) of processors.

Syntax

Windows* OS:

__declspec(cpu_specific(cpuid))

Linux* OS:

__attribute__((cpu_specific(cpuid)))

Arguments

cpuid

Possible values are:

atom: Intel® Atom™ processors with Intel® Supplemental Streaming SIMD Extensions 3 (SSSE3)

mic: Intel® Many Integrated Core Architecture (Intel® MIC Architecture).

core_aes_pclmulqdq: Intel® Core™ processors with support for Advanced Encryption Standard (AES) instructions and carry-less multiplication instruction

core_i7_sse4_2: Intel® Core™ i7 processors with Intel® Streaming SIMD Extensions 4.2 (SSE4.2) instructions

core_2_duo_sse4_1: Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture processors with Intel® Streaming SIMD Extensions 4.1 (SSE4.1) instructions

core_2_duo_ssse3: Intel® Core™2 Duo processors and Intel® Xeon® processors with Intel® Supplemental Streaming SIMD Extensions 3 (SSSE3) instructions

core_2nd_gen_avx: 2nd generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions (Intel® AVX)

core_3rd_gen_avx: 3rd generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions (Intel® AVX) including the RDRND instruction

core_4th_gen_avx: 4th generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions (Intel® AVX) including the RDRND instruction

core_4th_gen_avx_tsx: 4th generation Intel® Core™ processor family with support for Intel® Advanced Vector Extensions (Intel® AVX) including the RDRND instruction, and support for Intel® Transactional Synchronization Extensions (Intel® TSX)

pentium_4_sse3: Intel® Pentium 4 processor with Intel® Streaming SIMD Extensions 3 (Intel® SSE3) instructions, Intel® Core™ Duo processors, Intel® Core™ Solo processors

pentium_4: Intel® Intel Pentium 4 processors

pentium_m: Intel® Pentium M processors

pentium_iii: Intel® Pentium III processors

generic: Other IA-32 or Intel 64 processors or compatible processors not provided by Intel Corporation

Description

Use this keyword to declare each function version targeted at particular type(s) of processors.

This feature is available only for Intel processors based on IA-32 or Intel® 64 architecture. It is not available for non-Intel processors. Applications built using the manual processor dispatch feature may be more highly optimized for Intel processors than for non-Intel processors.

See Also


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>