lib/GCC/Builtins.xs

filter: Statementstmt 100% 36 / 36 Branchbran 50.0% 36 / 72 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 66.6% 72 / 108 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
↑ Summary blib/lib/GCC/Builtins.pm »
1  
2 /*
3 #######################################################
4 # Warning: this file has been auto-generated
5 # DO NOT EDIT if you can resist it.
6 # neither edit typemap not GCC/Buildins.pm
7 # make your edits in sbin/build-gcc-builtins-package.pl
8 #######################################################
9 */
10 #define PERL_NO_GET_CONTEXT // we'll define thread context if necessary (faster)
11 #include "EXTERN.h" // globals/constant import locations
12 #include "perl.h" // Perl symbols, structures and constants definition
13 #include "XSUB.h" // xsubpp functions and macros
14 #include <stdlib.h> // rand()
15  
16 #ifndef __has_builtin
17 #error "Your compiler does not support builtin functions, note this is a naive and lame test."
18 #endif
19  
20 typedef __int128 int128_t;
21 typedef unsigned __int128 uint128_t;
22  
23 MODULE = GCC::Builtins PACKAGE = GCC::Builtins
24 PROTOTYPES: ENABLE
25  
26 # The following XS code has been automatically generated:
27  
28  
29 uint16_t
30 bswap16(uint16_t x)
31 CODE:
32 1 ▶ RETVAL = __builtin_bswap16(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_bswap16(x); 0 1 1
33 OUTPUT:
34 RETVAL
35  
36  
37 uint32_t
38 bswap32(uint32_t x)
39 CODE:
40 1 ▶ RETVAL = __builtin_bswap32(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_bswap32(x); 0 1 1
41 OUTPUT:
42 RETVAL
43  
44  
45 uint64_t
46 bswap64(uint64_t x)
47 CODE:
48 1 ▶ RETVAL = __builtin_bswap64(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_bswap64(x); 0 1 1
49 OUTPUT:
50 RETVAL
51  
52  
53 int
54 clrsb(int x)
55 CODE:
56 1 ▶ RETVAL = __builtin_clrsb(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_clrsb(x); 0 1 1
57 OUTPUT:
58 RETVAL
59  
60  
61 int
62 clrsbl(long aaa)
63 CODE:
64 1 ▶ RETVAL = __builtin_clrsbl(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_clrsbl(aaa); 0 1 1
65 OUTPUT:
66 RETVAL
67  
68  
69 int
70 clrsbll(long long aaa)
71 CODE:
72 1 ▶ RETVAL = __builtin_clrsbll(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_clrsbll(aaa); 0 1 1
73 OUTPUT:
74 RETVAL
75  
76  
77 int
78 clz(unsigned int x)
79 CODE:
80 5 ▶ RETVAL = __builtin_clz(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_clz(x); 0 5 5
81 OUTPUT:
82 RETVAL
83  
84  
85 int
86 clzl(unsigned long aaa)
87 CODE:
88 1 ▶ RETVAL = __builtin_clzl(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_clzl(aaa); 0 1 1
89 OUTPUT:
90 RETVAL
91  
92  
93 int
94 clzll(unsigned long long aaa)
95 CODE:
96 1 ▶ RETVAL = __builtin_clzll(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_clzll(aaa); 0 1 1
97 OUTPUT:
98 RETVAL
99  
100  
101 int
102 ctz(unsigned int x)
103 CODE:
104 1 ▶ RETVAL = __builtin_ctz(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_ctz(x); 0 1 1
105 OUTPUT:
106 RETVAL
107  
108  
109 int
110 ctzl(unsigned long aaa)
111 CODE:
112 1 ▶ RETVAL = __builtin_ctzl(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_ctzl(aaa); 0 1 1
113 OUTPUT:
114 RETVAL
115  
116  
117 int
118 ctzll(unsigned long long aaa)
119 CODE:
120 1 ▶ RETVAL = __builtin_ctzll(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_ctzll(aaa); 0 1 1
121 OUTPUT:
122 RETVAL
123  
124  
125 int
126 ffs(int x)
127 CODE:
128 1 ▶ RETVAL = __builtin_ffs(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_ffs(x); 0 1 1
129 OUTPUT:
130 RETVAL
131  
132  
133 int
134 ffsl(long aaa)
135 CODE:
136 1 ▶ RETVAL = __builtin_ffsl(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_ffsl(aaa); 0 1 1
137 OUTPUT:
138 RETVAL
139  
140  
141 int
142 ffsll(long long aaa)
143 CODE:
144 1 ▶ RETVAL = __builtin_ffsll(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_ffsll(aaa); 0 1 1
145 OUTPUT:
146 RETVAL
147  
148  
149 double
150 huge_val()
151 CODE:
152 1 ▶ RETVAL = __builtin_huge_val();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_huge_val(); 0 1 1
153 OUTPUT:
154 RETVAL
155  
156  
157 float
158 huge_valf()
159 CODE:
160 1 ▶ RETVAL = __builtin_huge_valf();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_huge_valf(); 0 1 1
161 OUTPUT:
162 RETVAL
163  
164  
165 long double
166 huge_vall()
167 CODE:
168 1 ▶ RETVAL = __builtin_huge_vall();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_huge_vall(); 0 1 1
169 OUTPUT:
170 RETVAL
171  
172  
173 double
174 inf()
175 CODE:
176 1 ▶ RETVAL = __builtin_inf();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_inf(); 0 1 1
177 OUTPUT:
178 RETVAL
179  
180  
181 _Decimal128
182 infd128()
183 CODE:
184 1 ▶ RETVAL = __builtin_infd128();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_infd128(); 0 1 1
185 OUTPUT:
186 RETVAL
187  
188  
189 _Decimal32
190 infd32()
191 CODE:
192 1 ▶ RETVAL = __builtin_infd32();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_infd32(); 0 1 1
193 OUTPUT:
194 RETVAL
195  
196  
197 _Decimal64
198 infd64()
199 CODE:
200 1 ▶ RETVAL = __builtin_infd64();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_infd64(); 0 1 1
201 OUTPUT:
202 RETVAL
203  
204  
205 float
206 inff()
207 CODE:
208 1 ▶ RETVAL = __builtin_inff();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_inff(); 0 1 1
209 OUTPUT:
210 RETVAL
211  
212  
213 long double
214 infl()
215 CODE:
216 1 ▶ RETVAL = __builtin_infl();
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_infl(); 0 1 1
217 OUTPUT:
218 RETVAL
219  
220  
221 double
222 nan(const char * str)
223 CODE:
224 1 ▶ RETVAL = __builtin_nan(str);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_nan(str); 0 1 1
225 OUTPUT:
226 RETVAL
227  
228  
229 float
230 nanf(const char * str)
231 CODE:
232 1 ▶ RETVAL = __builtin_nanf(str);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_nanf(str); 0 1 1
233 OUTPUT:
234 RETVAL
235  
236  
237 long double
238 nanl(const char * str)
239 CODE:
240 1 ▶ RETVAL = __builtin_nanl(str);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_nanl(str); 0 1 1
241 OUTPUT:
242 RETVAL
243  
244  
245 int
246 parity(unsigned int x)
247 CODE:
248 1 ▶ RETVAL = __builtin_parity(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_parity(x); 0 1 1
249 OUTPUT:
250 RETVAL
251  
252  
253 int
254 parityl(unsigned long aaa)
255 CODE:
256 1 ▶ RETVAL = __builtin_parityl(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_parityl(aaa); 0 1 1
257 OUTPUT:
258 RETVAL
259  
260  
261 int
262 parityll(unsigned long long aaa)
263 CODE:
264 1 ▶ RETVAL = __builtin_parityll(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_parityll(aaa); 0 1 1
265 OUTPUT:
266 RETVAL
267  
268  
269 int
270 popcount(unsigned int x)
271 CODE:
272 1 ▶ RETVAL = __builtin_popcount(x);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_popcount(x); 0 1 1
273 OUTPUT:
274 RETVAL
275  
276  
277 int
278 popcountl(unsigned long aaa)
279 CODE:
280 1 ▶ RETVAL = __builtin_popcountl(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_popcountl(aaa); 0 1 1
281 OUTPUT:
282 RETVAL
283  
284  
285 int
286 popcountll(unsigned long long aaa)
287 CODE:
288 1 ▶ RETVAL = __builtin_popcountll(aaa);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_popcountll(aaa); 0 1 1
289 OUTPUT:
290 RETVAL
291  
292  
293 double
294 powi(double aaa,int aab)
295 CODE:
296 1 ▶ RETVAL = __builtin_powi(aaa,aab);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_powi(aaa,aab); 0 1 1
297 OUTPUT:
298 RETVAL
299  
300  
301 float
302 powif(float aaa,int aab)
303 CODE:
304 1 ▶ RETVAL = __builtin_powif(aaa,aab);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_powif(aaa,aab); 0 1 1
305 OUTPUT:
306 RETVAL
307  
308  
309 long double
310 powil(long double aaa,int aab)
311 CODE:
312 1 ▶ RETVAL = __builtin_powil(aaa,aab);
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = __builtin_powil(aaa,aab); 0 1 1
313 OUTPUT:
314 RETVAL
315  
↑ Summary blib/lib/GCC/Builtins.pm »