smalloc: opt by using macro

Just think these `sizeof` values should be computed once, not every time.