Changed x and y to reflect correct case. Also added unsigned.
Got valid block size.
Working on the actual min/max math.
Perhaps works?
It compiles.
Yay for floating point core dumps.
Isolated the issue at least.