| ... | ... | @@ -319,7 +319,7 @@ pub fn addCases(cases: &tests.ParseCContext) { |
| 319 | 319 | \\int log2(unsigned a) { |
| 320 | 320 | \\ int i = 0; |
| 321 | 321 | \\ while (a > 0) { |
| 322 | | \\ a >>= 100; |
| 322 | \\ a >>= 1; |
| 323 | 323 | \\ //i++; |
| 324 | 324 | \\ } |
| 325 | 325 | \\ return i; |
| ... | ... | @@ -329,10 +329,7 @@ pub fn addCases(cases: &tests.ParseCContext) { |
| 329 | 329 | \\ var a = _arg_a; |
| 330 | 330 | \\ var i: c_int = 0; |
| 331 | 331 | \\ while (a > c_uint(0)) { |
| 332 | | \\ { |
| 333 | | \\ const _ref = &a; |
| 334 | | \\ *_ref = c_uint(c_uint(*_ref) >> @import("std").math.Log2Int(c_uint)(100)); |
| 335 | | \\ }; |
| 332 | \\ a >>= @import("std").math.Log2Int(c_uint)(1); |
| 336 | 333 | \\ }; |
| 337 | 334 | \\ return i; |
| 338 | 335 | \\} |