[all-commits] [llvm/llvm-project] 58c968: libclc: Add div_cr utility function (#185730)
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Tue Mar 10 23:27:54 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 58c968dd5373d4c235f56b82c73d0e4d9f673025
https://github.com/llvm/llvm-project/commit/58c968dd5373d4c235f56b82c73d0e4d9f673025
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2026-03-11 (Wed, 11 Mar 2026)
Changed paths:
A libclc/clc/include/clc/math/clc_div_cr.h
M libclc/clc/lib/generic/CMakeLists.txt
A libclc/clc/lib/generic/math/clc_div_cr.cl
A libclc/clc/lib/generic/math/clc_div_cr.inc
Log Message:
-----------
libclc: Add div_cr utility function (#185730)
This is a workaround for the modal div operator precision. The
OpenCL default is not correctly rounded, so this provides a backdoor
to get a correctly rounded fdiv. Ideally clang would have a builtin
or some other mechanism to control the precision.
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