[all-commits] [llvm/llvm-project] 5aa938: clang/HIP: Do not call ocml in scalbln implementat...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Thu Mar 6 06:43:23 PST 2025
Branch: refs/heads/users/arsenm/clang/hip-fix-scalblnf-implementation
Home: https://github.com/llvm/llvm-project
Commit: 5aa9386f2ff9f0f7565eb4b480af1119c904ec62
https://github.com/llvm/llvm-project/commit/5aa9386f2ff9f0f7565eb4b480af1119c904ec62
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-03-06 (Thu, 06 Mar 2025)
Changed paths:
M clang/lib/Headers/__clang_hip_math.h
M clang/lib/Headers/__clang_hip_runtime_wrapper.h
M clang/test/Headers/__clang_hip_math.hip
Log Message:
-----------
clang/HIP: Do not call ocml in scalbln implementations
I do not understand why this was calling the float version with
an implicit cast from the long. Just clamp to the bounds of int,
and use the generic ldexp (this is also how musl does it (except
scalbnf is the base implementation there).
Somehow INT_MIN was also not defined, so deal with that.
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