Lines Matching refs:log2
417 CHECK( -1 == VG_(log2)(0) ); in test_log2()
418 CHECK( 0 == VG_(log2)(1) ); in test_log2()
419 CHECK( 1 == VG_(log2)(2) ); in test_log2()
420 CHECK( -1 == VG_(log2)(3) ); in test_log2()
421 CHECK( 2 == VG_(log2)(4) ); in test_log2()
422 CHECK( -1 == VG_(log2)(5) ); in test_log2()
423 CHECK( -1 == VG_(log2)(6) ); in test_log2()
424 CHECK( -1 == VG_(log2)(7) ); in test_log2()
425 CHECK( 3 == VG_(log2)(8) ); in test_log2()
427 CHECK( -1 == VG_(log2)( 15) ); in test_log2()
428 CHECK( 4 == VG_(log2)( 16) ); in test_log2()
429 CHECK( -1 == VG_(log2)( 17) ); in test_log2()
431 CHECK( -1 == VG_(log2)( 63) ); in test_log2()
432 CHECK( 6 == VG_(log2)( 64) ); in test_log2()
433 CHECK( -1 == VG_(log2)( 65) ); in test_log2()
435 CHECK( -1 == VG_(log2)(255) ); in test_log2()
436 CHECK( 8 == VG_(log2)(256) ); in test_log2()
437 CHECK( -1 == VG_(log2)(257) ); in test_log2()
439 CHECK( -1 == VG_(log2)(65535) ); in test_log2()
440 CHECK( 16 == VG_(log2)(65536) ); in test_log2()
441 CHECK( -1 == VG_(log2)(65537) ); in test_log2()
443 CHECK( -1 == VG_(log2)(16777215) ); in test_log2()
444 CHECK( 24 == VG_(log2)(16777216) ); in test_log2()
445 CHECK( -1 == VG_(log2)(16777217) ); in test_log2()
447 CHECK( -1 == VG_(log2)(2147483647U) ); in test_log2()
448 CHECK( 31 == VG_(log2)(2147483648U) ); in test_log2()
449 CHECK( -1 == VG_(log2)(2147483649U) ); in test_log2()
451 CHECK( -1 == VG_(log2)(4294967295U) ); // Max UInt in test_log2()