Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6709 Discussions

Ipp 8.1 INTEL_PLATFORM definition for 64 bit application

giacomo_c_
Beginner
414 Views

Hi

I ran in some trouble after Ipp 8.1 upgrade.

INTEL_PLATFORM definition in ippdefs.h is :

#ifdef _WIN32
#define _INTEL_PLATFORM "ia32/"
#else
#define _INTEL_PLATFORM "intel64/"
#endif

But for microsoft C++ compiler _WIN32  is defined for 64 bit application too as documented here

http://msdn.microsoft.com/en-us/library/b0084kay.aspx

_WIN32

Defined for applications for Win32 and Win64. Always defined.

_WIN64

Defined for applications for Win64

When I try to compile a 64 bit application the wrong path is selected.

I use this workaround including ipp.h

#pragma push_macro ("_WIN32")
#if defined ( _WIN64 )
    #undef _WIN32
#endif
#include <ipp.h>
#pragma pop_macro ("_WIN32")

 I'm missing something?

Thanks

0 Kudos
1 Reply
Ying_H_Intel
Employee
414 Views

Hi

Thanks for reporting.  Right, it is bug in IPP. We will fix the problem in next release.

Thanks
Ying

0 Kudos
Reply