Help for this page

Select Code to Download


  1. or download this
    // tbs2.cpp
    // Built with: g++ -o tbs2 -std=c++11 -Wall -O3 tbs2.cpp (and with 32-
    +bit int)
    ...
       printf("x : 0x%x\n", -268435456);
       return 0;
    }
    
  2. or download this
    d : -268435456
    u : 4026531840
    x : 0xf0000000
    
  3. or download this
    // ANSI C++ 11: tbs1.cpp
    // Built with: g++ -o tbs1 -std=c++11 -Wall -O3 tbs1.cpp
    ...
       }
       return 0;
    }
    
  4. or download this
    int32       : HIGH_BITS = -268435456
    uint32      : HIGH_BITS = 4026531840
    int64       : HIGH_BITS = 4026531840
    uint64      : HIGH_BITS = 4026531840
    
  5. or download this
    // ANSI C++ 11: tbs4.cpp
    // Built with: g++ -o tbs4 -std=c++11 -Wall -O3 tbs4.cpp
    ...
       std::cout << "b2         = " << b2 << "\n";
       return 0;
    }
    
  6. or download this
    0xFFFFFFFF = 4294967295
    0xF0000000 = 4026531840
    HIGH_BITS  = 4026531840
    b1         = 11110000000000000000000000000000
    b2         = 11110000000000000000000000000000