Of course I know that we don't cast the result of malloc()
, but what about mkl_malloc()
?
Here is the prototype: void* mkl_malloc (size_t alloc_size, int alignment);
It has the same return type as malloc(), as you can see: void* malloc (size_t size);
As a result, I would not cast the result, for these reasons. But the Intel people do, as you can see here, which makes me fear that I am missing something.
Does anybody know?