24 lines
423 B
C++
24 lines
423 B
C++
|
#include <myx/base/config.hpp>
|
||
|
#include <myx/base/endian_types.hpp>
|
||
|
|
||
|
#include <QDebug>
|
||
|
|
||
|
#define CMLIB_PROJECT_NAME "myxlib"
|
||
|
|
||
|
|
||
|
int main( int argc, char** argv )
|
||
|
{
|
||
|
(void)argc;
|
||
|
(void)argv;
|
||
|
|
||
|
beint64 bi = 1;
|
||
|
int64_t bii = reinterpret_cast< int64_t* >( &bi )[0];
|
||
|
qDebug() << hex << bi << bii;
|
||
|
|
||
|
leint64 li = 1;
|
||
|
int64_t lii = reinterpret_cast< int64_t* >( &li )[0];
|
||
|
qDebug() << hex << li << lii;
|
||
|
|
||
|
return( 0 );
|
||
|
} // main
|