I wish to use a block size that is padded to the nearest 32 so my function below I thought would be 36/32 = 1.125, ceil = 2, 2*32 = 64 however somewhere from converting from double to int I am getting the answer of 32.
double dbl;
int block_size;
dbl = ceil(36/32);
block_size = (int)dbl*32; // equals 32