[PATCH] D83473: libclc: Fix FP_ILOGBNAN definition

Boris Brezillon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 04:58:07 PDT 2020


bbrezillon marked an inline comment as done.
bbrezillon added inline comments.


================
Comment at: libclc/generic/lib/math/ilogb.cl:34
     r = ax < 0x00800000U ? rs : r;
-    r = ax > EXPBITS_SP32 | ax == 0 ? 0x80000000 : r;
+    r = ax == 0 ? FP_ILOGBNAN : r;
+
----------------
My bad, should be FP_ILOGB0 here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83473/new/

https://reviews.llvm.org/D83473





More information about the llvm-commits mailing list