[all-commits] [llvm/llvm-project] 3304a4: clang/HIP: Do not call ocml in scalbln implementat...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Thu Mar 6 16:55:48 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3304a430f291e31c6b71ff73a1b44f51456dca56
https://github.com/llvm/llvm-project/commit/3304a430f291e31c6b71ff73a1b44f51456dca56
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-03-07 (Fri, 07 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 (#129639)
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