Bump version to 19.1.0 (final)
[llvm-project.git] / libc / docs / gpu / support.rst
blob71dd1b30c5e3a434a22cd6939fa8c6f7b34c7a0e
1 .. _libc_gpu_support:
3 ===================
4 Supported Functions
5 ===================
7 .. include:: ../check.rst
9 .. contents:: Table of Contents
10   :depth: 4
11   :local:
13 The following functions and headers are supported at least partially on the
14 device. Some functions are implemented fully on the GPU, while others require a
15 `remote procedure call <libc_gpu_rpc>`_.
17 ctype.h
18 -------
20 =============  =========  ============
21 Function Name  Available  RPC Required
22 =============  =========  ============
23 isalnum        |check|
24 isalpha        |check|
25 isascii        |check|
26 isblank        |check|
27 iscntrl        |check|
28 isdigit        |check|
29 isgraph        |check|
30 islower        |check|
31 isprint        |check|
32 ispunct        |check|
33 isspace        |check|
34 isupper        |check|
35 isxdigit       |check|
36 toascii        |check|
37 tolower        |check|
38 toupper        |check|
39 =============  =========  ============
41 string.h
42 --------
44 =============  =========  ============
45 Function Name  Available  RPC Required
46 =============  =========  ============
47 bcmp           |check|
48 bcopy          |check|
49 bzero          |check|
50 index          |check|
51 memccpy        |check|
52 memchr         |check|
53 memcmp         |check|
54 memcpy         |check|
55 memmem         |check|
56 memmove        |check|
57 mempcpy        |check|
58 memrchr        |check|
59 memset         |check|
60 rindex         |check|
61 stpcpy         |check|
62 stpncpy        |check|
63 strcasecmp     |check|
64 strcasestr     |check|
65 strcat         |check|
66 strchr         |check|
67 strchrnul      |check|
68 strcmp         |check|
69 strcoll        |check|
70 strcpy         |check|
71 strcspn        |check|
72 strdup         |check|
73 strerror       |check|
74 strlcat        |check|
75 strlcpy        |check|
76 strlen         |check|
77 strncasecmp    |check|
78 strncat        |check|
79 strncmp        |check|
80 strncpy        |check|
81 strndup        |check|
82 strnlen        |check|
83 strpbrk        |check|
84 strrchr        |check|
85 strsep         |check|
86 strspn         |check|
87 strstr         |check|
88 strtok         |check|
89 strtok_r       |check|
90 strxfrm        |check|
91 =============  =========  ============
93 stdbit.h
94 --------
96 ============================  =========  ============
97 Function Name                 Available  RPC Required
98 ============================  =========  ============
99 stdc_leading_zeros_uc         |check|
100 stdc_leading_zeros_us         |check|
101 stdc_leading_zeros_ui         |check|
102 stdc_leading_zeros_ul         |check|
103 stdc_leading_zeros_ull        |check|
104 stdc_trailing_zeros_uc        |check|
105 stdc_trailing_zeros_us        |check|
106 stdc_trailing_zeros_ui        |check|
107 stdc_trailing_zeros_ul        |check|
108 stdc_trailing_zeros_ull       |check|
109 stdc_trailing_ones_uc         |check|
110 stdc_trailing_ones_us         |check|
111 stdc_trailing_ones_ui         |check|
112 stdc_trailing_ones_ul         |check|
113 stdc_trailing_ones_ull        |check|
114 stdc_first_leading_zero_uc    |check|
115 stdc_first_leading_zero_us    |check|
116 stdc_first_leading_zero_ui    |check|
117 stdc_first_leading_zero_ul    |check|
118 stdc_first_leading_zero_ull   |check|
119 stdc_first_leading_one_uc     |check|
120 stdc_first_leading_one_us     |check|
121 stdc_first_leading_one_ui     |check|
122 stdc_first_leading_one_ul     |check|
123 stdc_first_leading_one_ull    |check|
124 stdc_first_trailing_zero_uc   |check|
125 stdc_first_trailing_zero_us   |check|
126 stdc_first_trailing_zero_ui   |check|
127 stdc_first_trailing_zero_ul   |check|
128 stdc_first_trailing_zero_ull  |check|
129 stdc_first_trailing_one_uc    |check|
130 stdc_first_trailing_one_us    |check|
131 stdc_first_trailing_one_ui    |check|
132 stdc_first_trailing_one_ul    |check|
133 stdc_first_trailing_one_ull   |check|
134 stdc_count_zeros_uc           |check|
135 stdc_count_zeros_us           |check|
136 stdc_count_zeros_ui           |check|
137 stdc_count_zeros_ul           |check|
138 stdc_count_zeros_ull          |check|
139 stdc_count_ones_uc            |check|
140 stdc_count_ones_us            |check|
141 stdc_count_ones_ui            |check|
142 stdc_count_ones_ul            |check|
143 stdc_count_ones_ull           |check|
144 stdc_has_single_bit_uc        |check|
145 stdc_has_single_bit_us        |check|
146 stdc_has_single_bit_ui        |check|
147 stdc_has_single_bit_ul        |check|
148 stdc_has_single_bit_ull       |check|
149 stdc_bit_width_uc             |check|
150 stdc_bit_width_us             |check|
151 stdc_bit_width_ui             |check|
152 stdc_bit_width_ul             |check|
153 stdc_bit_width_ull            |check|
154 stdc_bit_floor_uc             |check|
155 stdc_bit_floor_us             |check|
156 stdc_bit_floor_ui             |check|
157 stdc_bit_floor_ul             |check|
158 stdc_bit_floor_ull            |check|
159 stdc_bit_ceil_uc              |check|
160 stdc_bit_ceil_us              |check|
161 stdc_bit_ceil_ui              |check|
162 stdc_bit_ceil_ul              |check|
163 stdc_bit_ceil_ull             |check|
164 ============================  =========  ============
166 stdlib.h
167 --------
169 =============  =========  ============
170 Function Name  Available  RPC Required
171 =============  =========  ============
172 abs            |check|
173 atoi           |check|
174 atof           |check|
175 atol           |check|
176 atoll          |check|
177 exit           |check|    |check|
178 abort          |check|    |check|
179 labs           |check|
180 llabs          |check|
181 div            |check|
182 ldiv           |check|
183 lldiv          |check|
184 bsearch        |check|
185 qsort          |check|
186 qsort_r        |check|
187 strtod         |check|
188 strtof         |check|
189 strtol         |check|
190 strtold        |check|
191 strtoll        |check|
192 strtoul        |check|
193 strtoull       |check|
194 srand          |check|
195 rand           |check|
196 =============  =========  ============
198 inttypes.h
199 ----------
201 =============  =========  ============
202 Function Name  Available  RPC Required
203 =============  =========  ============
204 imaxabs        |check|
205 imaxdiv        |check|
206 strtoimax      |check|
207 strtoumax      |check|
208 =============  =========  ============
210 stdio.h
211 -------
213 =============  =========  ============
214 Function Name  Available  RPC Required
215 =============  =========  ============
216 feof           |check|    |check|
217 ferror         |check|    |check|
218 clearerr       |check|    |check|
219 fseek          |check|    |check|
220 ftell          |check|    |check|
221 fflush         |check|    |check|
222 fgetc          |check|    |check|
223 fgets          |check|    |check|
224 ungetc         |check|    |check|
225 getc           |check|    |check|
226 getchar        |check|    |check|
227 puts           |check|    |check|
228 fputs          |check|    |check|
229 fputc          |check|    |check|
230 fwrite         |check|    |check|
231 remove         |check|    |check|
232 putc           |check|    |check|
233 printf         |check|    |check|
234 vprintf        |check|    |check|
235 fprintf        |check|    |check|
236 vfprintf       |check|    |check|
237 sprintf        |check|    |check|
238 snprintf       |check|    |check|
239 vsprintf       |check|    |check|
240 vsnprintf      |check|    |check|
241 putchar        |check|    |check|
242 fclose         |check|    |check|
243 fopen          |check|    |check|
244 fread          |check|    |check|
245 =============  =========  ============
247 time.h
248 ------
250 =============  =========  ============
251 Function Name  Available  RPC Required
252 =============  =========  ============
253 clock          |check|
254 clock_gettime  |check|
255 nanosleep      |check|
256 =============  =========  ============
258 assert.h
259 --------
261 =============  =========  ============
262 Function Name  Available  RPC Required
263 =============  =========  ============
264 assert         |check|    |check|
265 __assert_fail  |check|    |check|
266 =============  =========  ============