[all-commits] [llvm/llvm-project] 3a7051: libclc: Fix FP_ILOGBNAN definition

Boris Brezillon via All-commits all-commits at lists.llvm.org
Mon Aug 17 13:47:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a7051d9c28e3dd6da5048d91b74fad830728e93
      https://github.com/llvm/llvm-project/commit/3a7051d9c28e3dd6da5048d91b74fad830728e93
  Author: Boris Brezillon <boris.brezillon at collabora.com>
  Date:   2020-08-17 (Mon, 17 Aug 2020)

  Changed paths:
    M libclc/generic/include/clc/float/definitions.h
    M libclc/generic/lib/math/ilogb.cl

  Log Message:
  -----------
  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 at collabora.com>

Reviewed By: jvesely

Differential Revision: https://reviews.llvm.org/D83473




More information about the All-commits mailing list