High-performance arithmetic for division and the elementary functions