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

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


  Branch: refs/heads/users/arsenm/libclc/replace-nextafter-impl
  Home:   https://github.com/llvm/llvm-project
  Commit: 1606180ebe4e739802a5f273b8b4580b86e056a5
      https://github.com/llvm/llvm-project/commit/1606180ebe4e739802a5f273b8b4580b86e056a5
  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