libclc: Fix FP_ILOGBNAN definition
commit3a7051d9c28e3dd6da5048d91b74fad830728e93
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 17 Aug 2020 20:44:01 +0000 (17 13:44 -0700)
committerTom Stellard <tstellar@redhat.com>
Mon, 17 Aug 2020 20:45:43 +0000 (17 13:45 -0700)
treede1a01f64e1aed7080bdaab6e4789a8ea6cd152b
parent45cc86b09bcd499c9d26b83e70114f0be8ecfa85
libclc: Fix FP_ILOGBNAN definition

Fix FP_ILOGBNAN definition to match the opencl-c-base.h one and
guarantee that FP_ILOGBNAN and FP_ILOGB0 are different. Doing that
implies fixing ilogb() implementation to return the right value.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed By: jvesely

Differential Revision: https://reviews.llvm.org/D83473
libclc/generic/include/clc/float/definitions.h
libclc/generic/lib/math/ilogb.cl