log-domain arithmetic