[all-commits] [llvm/llvm-project] a5c35c: libclc: Replace nextafter implementation

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Mar 12 03:46:07 PDT 2026


  Branch: refs/heads/users/arsenm/libclc/replace-nextafter-impl
  Home:   https://github.com/llvm/llvm-project
  Commit: a5c35cbbc0cea7188b3694182ca6c14609c1b9c1
      https://github.com/llvm/llvm-project/commit/a5c35cbbc0cea7188b3694182ca6c14609c1b9c1
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-03-12 (Thu, 12 Mar 2026)

  Changed paths:
    M libclc/clc/include/clc/float/definitions.h
    A libclc/clc/include/clc/math/clc_nextdown.h
    A libclc/clc/include/clc/math/clc_nextup.h
    M libclc/clc/include/clc/math/gentype.inc
    M libclc/clc/lib/generic/CMakeLists.txt
    M libclc/clc/lib/generic/math/clc_nextafter.cl
    A libclc/clc/lib/generic/math/clc_nextafter.inc
    A libclc/clc/lib/generic/math/clc_nextdown.cl
    A libclc/clc/lib/generic/math/clc_nextdown.inc
    A libclc/clc/lib/generic/math/clc_nextup.cl
    A libclc/clc/lib/generic/math/clc_nextup.inc

  Log Message:
  -----------
  libclc: Replace nextafter implementation

Use a more straightforward version which allows
optimizations to delete the edge case checks, and also
codegens better. Implement in terms of new nextup and nextdown
helper functions, which are IEEE functions, and usable in other
functions.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list