[libc-commits] [PATCH] D154143: [libc] Enable the 'div' routines on the GPU

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jun 29 13:42:58 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb15ac1fd8996: [libc] Enable the 'div' routines on the GPU (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154143

Files:
  libc/config/gpu/api.td
  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
@@ -92,6 +92,9 @@
 exit           |check|    |check|
 labs           |check|
 llabs          |check|
+div            |check|
+ldiv           |check|
+lldiv          |check|
 strtod         |check|
 strtof         |check|
 strtol         |check|
Index: libc/config/gpu/entrypoints.txt
===================================================================
--- libc/config/gpu/entrypoints.txt
+++ libc/config/gpu/entrypoints.txt
@@ -60,8 +60,11 @@
     libc.src.stdlib.atof
     libc.src.stdlib.atol
     libc.src.stdlib.atoll
+    libc.src.stdlib.div
     libc.src.stdlib.labs
+    libc.src.stdlib.ldiv
     libc.src.stdlib.llabs
+    libc.src.stdlib.lldiv
     libc.src.stdlib.strtod
     libc.src.stdlib.strtof
     libc.src.stdlib.strtol
Index: libc/config/gpu/api.td
===================================================================
--- libc/config/gpu/api.td
+++ libc/config/gpu/api.td
@@ -9,6 +9,9 @@
 
 def StdlibAPI : PublicAPI<"stdlib.h"> {
   let Types = [
+    "div_t",
+    "ldiv_t",
+    "lldiv_t",
     "size_t",
     "__atexithandler_t",
   ];


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154143.535984.patch
Type: text/x-patch
Size: 1218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230629/06657571/attachment.bin>


More information about the libc-commits mailing list