Community
cancel
Showing results for 
Search instead for 
Did you mean: 
renorm
Beginner
45 Views

What exactly scalable_msize does?

Very quick question. Can this fail?
[cpp]ptr = scalable_aligned_malloc(size, alignment);
assert(size==scalable_msize(ptr));[/cpp]
Thanks.
0 Kudos
2 Replies
Alexey_K_Intel3
Employee
45 Views

Yes it can.

You can think of scalable_msize as the biggest size for which scalable_realloc returns the same address that it received.
Ilnar
Beginner
45 Views

[bash]assert(size <= scalable_msize(ptr));[/bash]