[libc-commits] [PATCH] D149317: [libc] Support the `abs` functions in the GPU libc.

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 27 08:18:51 PDT 2023


jhuber6 updated this revision to Diff 517568.
jhuber6 added a comment.

Remove ldiv types


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149317/new/

https://reviews.llvm.org/D149317

Files:
  libc/config/gpu/entrypoints.txt
  libc/docs/gpu/support.rst


Index: libc/docs/gpu/support.rst
===================================================================
--- libc/docs/gpu/support.rst
+++ libc/docs/gpu/support.rst
@@ -84,11 +84,14 @@
 =============  =========  ============
 Function Name  Available  RPC Required
 =============  =========  ============
+abs            |check|
 atoi           |check|
 atof           |check|
 atol           |check|
 atoll          |check|
 atexit         |check|
+labs           |check|
+llabs          |check|
 strtod         |check|
 strtof         |check|
 strtol         |check|
Index: libc/config/gpu/entrypoints.txt
===================================================================
--- libc/config/gpu/entrypoints.txt
+++ libc/config/gpu/entrypoints.txt
@@ -55,10 +55,13 @@
     libc.src.string.strtok_r
 
     # stdlib.h entrypoints
+    libc.src.stdlib.abs
     libc.src.stdlib.atoi
     libc.src.stdlib.atof
     libc.src.stdlib.atol
     libc.src.stdlib.atoll
+    libc.src.stdlib.labs
+    libc.src.stdlib.llabs
     libc.src.stdlib.atexit
     libc.src.stdlib.strtod
     libc.src.stdlib.strtof


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149317.517568.patch
Type: text/x-patch
Size: 1091 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230427/4206ce6b/attachment-0001.bin>


More information about the libc-commits mailing list