It makes perfect sense, I should have tried using an example myself. Good point on the integer division!
Thank you for taking the time!
Type: Posts; User: Xpl0ReRChR
It makes perfect sense, I should have tried using an example myself. Good point on the integer division!
Thank you for taking the time!
Thank you Dennis! SLOB_UNIT is defined as sizeof(slob_t), which is a struct describing a block.
I should have been more specific. What I meant to ask is, what is it that the formula represents?
#define SLOB_UNITS(size) (((size) + SLOB_UNIT - 1)/SLOB_UNIT)
Could someone explain to me what this does? I would be really greatful! :)