Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

What is the calling convetion for i_malloc and friends on 32bit Windows

$
0
0

Hello,

I am trying to redefine memory allocation functions for MKL by using function pointer i_malloc and friends as described in https://software.intel.com/en-us/node/528395. On 32bit Windows however I am facing a problem: I could not figure out what is the calling convention for those functions? Is it __cdecl, __stdcall, __fastcall? The i_malloc.h header just says

typedef void * (* i_malloc_t)(size_t size);

But depending on whether I set -Gz for compilation or not this may change the calling convention on this function. Am I missing something here or should the header explicitly specify the calling convention?

Anyway, what actually is the calling convention that MKL assumes for these functions?

Thanks,

Daniel


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>