s3_cbc.c: get rid of expensive divisions [from master].