Tim's implementation had a 'hand made' computation for ceil(); it was probaby more efficient (in terms of host CPU), but I find it is clearer to use the library function.