updates to s_round.c from FreeBSD