checkasm: add float comparison util functions