Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Intrinsics for Logarithmic Operations (512-bit)

The prototypes for Intel® Advanced Vector Extensions 512 (Intel® AVX-512) intrinsics are located in the zmmintrin.h header file.

To use these intrinsics, include the immintrin.h file as follows:

#include <immintrin.h>


Intrinsic Name

Operation

Corresponding
Intel® AVX-512 Instruction

_mm512_log10_pd, _mm512_mask_log10_pd

Calculates base-10 logarithm.

None.

_mm512_log10_ps, _mm512_mask_log10_ps

Calculates base-10 logarithm.

None.

_mm512_log1p_pd, _mm512_mask_log1p_pd

Calculates natural logarithm.

None.

_mm512_log1p_ps, _mm512_mask_log1p_ps

Calculates signed exponent.

None.

_mm512_log2_pd, _mm512_mask_log2_pd

Calculates base-2 logarithm.

None.

_mm512_log_pd, _mm512_mask_log_pd

Calculates natural logarithm.

None.

_mm512_log_ps, _mm512_mask_log_ps

Calculates natural logarithm.

None.

_mm512_logb_pd, _mm512_mask_logb_pd

Calculates signed exponent.

None.

_mm512_logb_ps, _mm512_mask_logb_ps

Calculates signed exponent.

None.


variable definition
k

zeromask used as a selector

k

writemask used as a selector

a

first source vector element

b

second source vector element

c

third source vector element

src

source element


_mm512_log10_pd

extern __m512d __cdecl _mm512_log10_pd(__m512d a);

Calculates the base-10 logarithm of vector a elements.



_mm512_mask_log10_pd

extern __m512d __cdecl _mm512_mask_log10_pd(__m512d src, __mmask8 k, __m512d a);

Calculates the base-10 logarithm of vector a elements.



_mm512_log10_ps

extern __m512 __cdecl _mm512_log10_ps(__m512 a);

Calculates the base-10 logarithm of vector a elements.



_mm512_mask_log10_ps

extern __m512 __cdecl _mm512_mask_log10_ps(__m512 src, __mmask16 k, __m512 a);

Calculates the base-10 logarithm of vector a elements.



_mm512_log1p_pd

extern __m512d __cdecl _mm512_log1p_pd(__m512d a);

Calculates the natural logarithm of vector a elements, defined by: ln (v1 + 1)



_mm512_mask_log1p_pd

extern __m512d __cdecl _mm512_mask_log1p_pd(__m512d src, __mmask8 k, __m512d a);

Calculates the natural logarithm of vector a elements, defined by: ln (v1 + 1)



_mm512_log1p_ps

extern __m512 __cdecl _mm512_log1p_ps(__m512 a);

Calculates the natural logarithm of vector a elements, defined by: ln (v1 + 1)



_mm512_mask_log1p_ps

extern __m512 __cdecl _mm512_mask_log1p_ps(__m512 src, __mmask16 k, __m512 a);

Calculates the natural logarithm of vector a elements, defined by: ln (v1 + 1)



_mm512_log2_pd

extern __m512d __cdecl _mm512_log2_pd(__m512d a);

Calculates the base-2 logarithm of vector a elements.



_mm512_mask_log2_pd

extern __m512d __cdecl _mm512_mask_log2_pd(__m512d src, __mmask8 k, __m512d a);

Calculates the base-2 logarithm of vector a elements.



_mm512_log_pd

extern __m512d __cdecl _mm512_log_pd(__m512d a);

Calculates the natural (base-e) logarithm of vector a elements.



_mm512_mask_log_pd

extern __m512d __cdecl _mm512_mask_log_pd(__m512d src, __mmask8 k, __m512d a);

Calculates the natural (base-e) logarithm of vector a elements.



_mm512_log_ps

extern __m512 __cdecl _mm512_log_ps(__m512 a);

Calculates the natural (base-e) logarithm of vector a elements.



_mm512_mask_log_ps

extern __m512 __cdecl _mm512_mask_log_ps(__m512 src, __mmask16 k, __m512 a);

Calculates the natural (base-e) logarithm of vector a elements.



_mm512_logb_pd

extern __m512d __cdecl _mm512_logb_pd(__m512d a);

Calculates the signed exponent of vector a elements.



_mm512_mask_logb_pd

extern __m512d __cdecl _mm512_mask_logb_pd(__m512d src, __mmask8 k, __m512d a);

Calculates the signed exponent of vector a elements.



_mm512_logb_ps

extern __m512 __cdecl _mm512_logb_ps(__m512 a);

Calculates the signed exponent of vector a elements.



_mm512_mask_logb_ps

extern __m512 __cdecl _mm512_mask_logb_ps(__m512 src, __mmask16 k, __m512 a);

Calculates the signed exponent of vector a elements.