Home | History | Annotate | Download | only in tests

Lines Matching refs:log2

439    CHECK( -1 == VG_(log2)(0) );
440 CHECK( 0 == VG_(log2)(1) );
441 CHECK( 1 == VG_(log2)(2) );
442 CHECK( -1 == VG_(log2)(3) );
443 CHECK( 2 == VG_(log2)(4) );
444 CHECK( -1 == VG_(log2)(5) );
445 CHECK( -1 == VG_(log2)(6) );
446 CHECK( -1 == VG_(log2)(7) );
447 CHECK( 3 == VG_(log2)(8) );
449 CHECK( -1 == VG_(log2)( 15) );
450 CHECK( 4 == VG_(log2)( 16) );
451 log2)( 17) );
453 CHECK( -1 == VG_(log2)( 63) );
454 CHECK( 6 == VG_(log2)( 64) );
455 CHECK( -1 == VG_(log2)( 65) );
457 CHECK( -1 == VG_(log2)(255) );
458 CHECK( 8 == VG_(log2)(256) );
459 CHECK( -1 == VG_(log2)(257) );
461 CHECK( -1 == VG_(log2)(65535) );
462 CHECK( 16 == VG_(log2)(65536) );
463 CHECK( -1 == VG_(log2)(65537) );
465 CHECK( -1 == VG_(log2)(16777215) );
466 CHECK( 24 == VG_(log2)(16777216) );
467 CHECK( -1 == VG_(log2)(16777217) );
469 CHECK( -1 == VG_(log2)(2147483647U) );
470 CHECK( 31 == VG_(log2)(2147483648U) );
471 CHECK( -1 == VG_(log2)(2147483649U) );
473 CHECK( -1 == VG_(log2)(4294967295U) ); // Max UInt