FPGA Arithmetic for Machine Learning