File Coverage

lib/GCC/Builtins.xs
Criterion Covered Total %
statement 36 36 100.0
branch 36 72 50.0
condition n/a
subroutine n/a
pod n/a
total 72 108 66.6


line stmt bran cond sub pod time code
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 // 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 50         RETVAL = __builtin_bswap16(x);
33             OUTPUT:
34             RETVAL
35              
36              
37             uint32_t
38             bswap32(uint32_t x)
39             CODE:
40 1 50         RETVAL = __builtin_bswap32(x);
41             OUTPUT:
42             RETVAL
43              
44              
45             uint64_t
46             bswap64(uint64_t x)
47             CODE:
48 1 50         RETVAL = __builtin_bswap64(x);
49             OUTPUT:
50             RETVAL
51              
52              
53             int
54             clrsb(int x)
55             CODE:
56 1 50         RETVAL = __builtin_clrsb(x);
57             OUTPUT:
58             RETVAL
59              
60              
61             int
62             clrsbl(long aaa)
63             CODE:
64 1 50         RETVAL = __builtin_clrsbl(aaa);
65             OUTPUT:
66             RETVAL
67              
68              
69             int
70             clrsbll(long long aaa)
71             CODE:
72 1 50         RETVAL = __builtin_clrsbll(aaa);
73             OUTPUT:
74             RETVAL
75              
76              
77             int
78             clz(unsigned int x)
79             CODE:
80 5 50         RETVAL = __builtin_clz(x);
81             OUTPUT:
82             RETVAL
83              
84              
85             int
86             clzl(unsigned long aaa)
87             CODE:
88 1 50         RETVAL = __builtin_clzl(aaa);
89             OUTPUT:
90             RETVAL
91              
92              
93             int
94             clzll(unsigned long long aaa)
95             CODE:
96 1 50         RETVAL = __builtin_clzll(aaa);
97             OUTPUT:
98             RETVAL
99              
100              
101             int
102             ctz(unsigned int x)
103             CODE:
104 1 50         RETVAL = __builtin_ctz(x);
105             OUTPUT:
106             RETVAL
107              
108              
109             int
110             ctzl(unsigned long aaa)
111             CODE:
112 1 50         RETVAL = __builtin_ctzl(aaa);
113             OUTPUT:
114             RETVAL
115              
116              
117             int
118             ctzll(unsigned long long aaa)
119             CODE:
120 1 50         RETVAL = __builtin_ctzll(aaa);
121             OUTPUT:
122             RETVAL
123              
124              
125             int
126             ffs(int x)
127             CODE:
128 1 50         RETVAL = __builtin_ffs(x);
129             OUTPUT:
130             RETVAL
131              
132              
133             int
134             ffsl(long aaa)
135             CODE:
136 1 50         RETVAL = __builtin_ffsl(aaa);
137             OUTPUT:
138             RETVAL
139              
140              
141             int
142             ffsll(long long aaa)
143             CODE:
144 1 50         RETVAL = __builtin_ffsll(aaa);
145             OUTPUT:
146             RETVAL
147              
148              
149             double
150             huge_val()
151             CODE:
152 1 50         RETVAL = __builtin_huge_val();
153             OUTPUT:
154             RETVAL
155              
156              
157             float
158             huge_valf()
159             CODE:
160 1 50         RETVAL = __builtin_huge_valf();
161             OUTPUT:
162             RETVAL
163              
164              
165             long double
166             huge_vall()
167             CODE:
168 1 50         RETVAL = __builtin_huge_vall();
169             OUTPUT:
170             RETVAL
171              
172              
173             double
174             inf()
175             CODE:
176 1 50         RETVAL = __builtin_inf();
177             OUTPUT:
178             RETVAL
179              
180              
181             _Decimal128
182             infd128()
183             CODE:
184 1 50         RETVAL = __builtin_infd128();
185             OUTPUT:
186             RETVAL
187              
188              
189             _Decimal32
190             infd32()
191             CODE:
192 1 50         RETVAL = __builtin_infd32();
193             OUTPUT:
194             RETVAL
195              
196              
197             _Decimal64
198             infd64()
199             CODE:
200 1 50         RETVAL = __builtin_infd64();
201             OUTPUT:
202             RETVAL
203              
204              
205             float
206             inff()
207             CODE:
208 1 50         RETVAL = __builtin_inff();
209             OUTPUT:
210             RETVAL
211              
212              
213             long double
214             infl()
215             CODE:
216 1 50         RETVAL = __builtin_infl();
217             OUTPUT:
218             RETVAL
219              
220              
221             double
222             nan(const char * str)
223             CODE:
224 1 50         RETVAL = __builtin_nan(str);
225             OUTPUT:
226             RETVAL
227              
228              
229             float
230             nanf(const char * str)
231             CODE:
232 1 50         RETVAL = __builtin_nanf(str);
233             OUTPUT:
234             RETVAL
235              
236              
237             long double
238             nanl(const char * str)
239             CODE:
240 1 50         RETVAL = __builtin_nanl(str);
241             OUTPUT:
242             RETVAL
243              
244              
245             int
246             parity(unsigned int x)
247             CODE:
248 1 50         RETVAL = __builtin_parity(x);
249             OUTPUT:
250             RETVAL
251              
252              
253             int
254             parityl(unsigned long aaa)
255             CODE:
256 1 50         RETVAL = __builtin_parityl(aaa);
257             OUTPUT:
258             RETVAL
259              
260              
261             int
262             parityll(unsigned long long aaa)
263             CODE:
264 1 50         RETVAL = __builtin_parityll(aaa);
265             OUTPUT:
266             RETVAL
267              
268              
269             int
270             popcount(unsigned int x)
271             CODE:
272 1 50         RETVAL = __builtin_popcount(x);
273             OUTPUT:
274             RETVAL
275              
276              
277             int
278             popcountl(unsigned long aaa)
279             CODE:
280 1 50         RETVAL = __builtin_popcountl(aaa);
281             OUTPUT:
282             RETVAL
283              
284              
285             int
286             popcountll(unsigned long long aaa)
287             CODE:
288 1 50         RETVAL = __builtin_popcountll(aaa);
289             OUTPUT:
290             RETVAL
291              
292              
293             double
294             powi(double aaa,int aab)
295             CODE:
296 1 50         RETVAL = __builtin_powi(aaa,aab);
297             OUTPUT:
298             RETVAL
299              
300              
301             float
302             powif(float aaa,int aab)
303             CODE:
304 1 50         RETVAL = __builtin_powif(aaa,aab);
305             OUTPUT:
306             RETVAL
307              
308              
309             long double
310             powil(long double aaa,int aab)
311             CODE:
312 1 50         RETVAL = __builtin_powil(aaa,aab);
313             OUTPUT:
314             RETVAL
315