Is it possible to use the functions of working with SSE in c ++ code without including assembly rates?

Especially interesting are the functions of calculating exponentials and logarithms.

On the Intel site, the documentation provides functions like _mm_exp_ps . But this feature is not in the <immintrin.h> library.

Tell me how to be?

  • one
    Most modern compilers do generate SSE instructions if they are not specifically denied. - AnT pm
  • AnT - I watched the disassembled code when working with float / double, then SSE instructions are often really sent, but I have a cycle with a bunch of identical calculations (only different parameters) and now the compiler in Release could not wrap it in normal SSE, i.e. . do normal vector calculations, so I want to help him a little - Zhihar

1 answer 1

The built-in function _mm_exp_ps not an alias for assembly instructions, but is part of the Short Vector Math Library (SVML) distributed with Intel compilers.

  • those. on VS compiler is not available to me? :( - Zhihar
  • @Zhihar exactly like this - VTT 10:26 pm
  • sorry :( and how can I use the VS2017 compiler to access SSE, which my processor supports? It turns out all the goodies I need only through the Intel compiler :( - Zhihar pm
  • one
    @Zhihar, this is not a processor instruction, they wrote to you. This is a library function, for processor instructions there must be intrinsics. - ixSci