Utility functions for S1C7 done.

Working tests for most. Still need to do the big boy though, the round
function.