[libc-commits] [libc] [libc] Add missing math definitions for round and scal for GPU (PR #104636)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Fri Aug 16 12:40:37 PDT 2024


https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/104636

Summary:
These can be enabled


>From c23dfd9f2ab7cf683e707d0559d81be09615aeba Mon Sep 17 00:00:00 2001
From: Joseph Huber <huberjn at outlook.com>
Date: Fri, 16 Aug 2024 14:34:04 -0500
Subject: [PATCH] [libc] Add missing math definitions for round and scal for
 GPU

Summary:
These can be enabled
---
 libc/config/gpu/entrypoints.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libc/config/gpu/entrypoints.txt b/libc/config/gpu/entrypoints.txt
index 9ead5aa92d5a92..bbae3298fae615 100644
--- a/libc/config/gpu/entrypoints.txt
+++ b/libc/config/gpu/entrypoints.txt
@@ -425,13 +425,15 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.math.rint
     libc.src.math.rintf
     libc.src.math.rintl
-    libc.src.math.round
     libc.src.math.roundeven
     libc.src.math.roundevenf
     libc.src.math.roundevenl
+    libc.src.math.round
     libc.src.math.roundf
+    libc.src.math.roundl
     libc.src.math.scalbln
     libc.src.math.scalblnf
+    libc.src.math.scalblnl
     libc.src.math.scalbn
     libc.src.math.scalbnf
     libc.src.math.scalbnl
@@ -459,6 +461,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.math.tgammaf
     libc.src.math.totalorder
     libc.src.math.totalorderf
+    libc.src.math.totalorderl
     libc.src.math.totalordermag
     libc.src.math.totalordermagf
     libc.src.math.totalordermagl



More information about the libc-commits mailing list