Design of robust, malleable arithmetic units using lookup tables