[libc-commits] [libc] [libc] Fix incorrectly enabled GPU math functions (PR #83594)

Matt Arsenault via libc-commits libc-commits at lists.llvm.org
Fri Mar 1 08:49:21 PST 2024


================
@@ -1,18 +0,0 @@
-//===-- Implementation of the GPU llround function ------------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-#include "src/math/llround.h"
-#include "src/__support/common.h"
-
-namespace LIBC_NAMESPACE {
-
-LLVM_LIBC_FUNCTION(long long, llround, (double x)) {
-  return __builtin_llround(x);
----------------
arsenm wrote:

We should just support these. I don't really get why these exist, they're implemented in the HIP headers as the cast of the regular round 

https://github.com/llvm/llvm-project/pull/83594


More information about the libc-commits mailing list