commit | dbf81e0c0e364173176159e0e2548e9948b197a4 | [log] [tgz] |
---|---|---|
author | Nicolas Capens <capn@google.com> | Sat Jan 14 12:53:55 2017 -0500 |
committer | Nicolas Capens <nicolascapens@google.com> | Tue Jan 17 21:17:31 2017 +0000 |
tree | 6b7ed1d2810dec370076348e345062b22d4ceec2 | |
parent | 4e679e51f645b99940f43c80fec7f146d59eb00f [diff] |
Implement an intrinsic for nearbyint. The round intrinsic gets translated to roundps on x86, which is SSE4.1 only. cvtps2pd + cvtdq2ps can be used as an SSE2 fallback. cvtps2pd also corresponds to LLVM's nearbyint intrinsic. BUG=swiftshader:20 Change-Id: I8b5896c443f202a5b25125b4e5049b0b3d3a11b0 Reviewed-on: https://chromium-review.googlesource.com/428491 Reviewed-by: Jim Stichnoth <stichnot@chromium.org>