Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
1135 Discussions

Cannot access compiler intrinsics for logarithm in Visual Studio

Anil_M_
Beginner
1,224 Views

 

Hello, 

I cannot use the compiler intrinsics related to logarithms in neither Visual Studio 2013 nor 2015. 

I tried to use _mm_log_ps and it was not found. I used the "immintrin.h" header file. I looked inside the header and could not find the function. 
Has anybody faced the same issue? Thanks in advance for your help. 


Regards, 
Anil Mahmud. 

0 Kudos
2 Replies
Alexander_L_1
Beginner
1,224 Views

  Hello Anil,

it is not an intrinsic method (because there is no equivalent processor operation), it is SVML (short vector match library) routine implemented by Intel Compiler Runtime Library.

You can try do declare it something like extern __m128 _mm_log2_ps(__m128 v1) and hope, that would be linked with some VC++ library...
Or ask by Intel, how it implemented,
Or if you know what it does, implement it self :)

Alex

0 Kudos
Anil_M_
Beginner
1,224 Views

Hello Alexander,

Thanks for your reply. I get the point. I managed to use another compiler intrinsc function to do the task so its okay. But thanks :)

0 Kudos
Reply