Add high precision support for sw.