File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 170170 "return_type" : {
171171 "type" : " u64"
172172 }
173+ },
174+ "f7" : {
175+ "body" : [
176+ {
177+ "method_call" : {
178+ "receiver" : [
179+ {
180+ "placeholder" : {
181+ "arg" : 0 ,
182+ "access" : " read"
183+ }
184+ }
185+ ],
186+ "body" : [
187+ {
188+ "text" : " .trailing_zeros()"
189+ }
190+ ]
191+ }
192+ },
193+ {
194+ "text" : " as i32"
195+ }
196+ ],
197+ "params" : {
198+ "a0" : {
199+ "type" : " u64"
200+ }
201+ },
202+ "return_type" : {
203+ "type" : " i32"
204+ }
205+ },
206+ "f8" : {
207+ "body" : [
208+ {
209+ "method_call" : {
210+ "receiver" : [
211+ {
212+ "placeholder" : {
213+ "arg" : 0 ,
214+ "access" : " read"
215+ }
216+ }
217+ ],
218+ "body" : [
219+ {
220+ "text" : " .count_ones()"
221+ }
222+ ]
223+ }
224+ },
225+ {
226+ "text" : " as i32"
227+ }
228+ ],
229+ "params" : {
230+ "a0" : {
231+ "type" : " u64"
232+ }
233+ },
234+ "return_type" : {
235+ "type" : " i32"
236+ }
173237 }
174238}
Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ unsigned short f4(unsigned short x) { return __builtin_bswap16(x); }
1919unsigned int f5 (unsigned int x) { return __builtin_bswap32 (x); }
2020unsigned long long f6 (unsigned long long x) { return __builtin_bswap64 (x); }
2121#endif
22+ int f7 (unsigned long x) { return __builtin_ctzl (x); }
23+ int f8 (unsigned long x) { return __builtin_popcountl (x); }
Original file line number Diff line number Diff line change @@ -19,3 +19,9 @@ unsafe fn f5(a0: u32) -> u32 {
1919unsafe fn f6 ( a0 : u64 ) -> u64 {
2020 a0. swap_bytes ( )
2121}
22+ unsafe fn f7 ( a0 : u64 ) -> i32 {
23+ a0. trailing_zeros ( ) as i32
24+ }
25+ unsafe fn f8 ( a0 : u64 ) -> i32 {
26+ a0. count_ones ( ) as i32
27+ }
You can’t perform that action at this time.
0 commit comments