Pipelining of arithmetic functions