Community
cancel
Showing results for 
Search instead for 
Did you mean: 
giacomo_c_
Beginner
64 Views

Ipp 8.1 INTEL_PLATFORM definition for 64 bit application

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
64 Views

Hi

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

Thanks
Ying