implement llrint properly; fixes #1380