#include <stdio.h>
#include <_mingw.h>
int main(void) {
    __int128 i=170141183460469231731687303715884105727LLL;
    unsigned __int128 u=340282366920938463463374607431768211455ULLL;
    //printf("i=%I128d\n", i);
    printf("%*d", 128/8, i);
    printf("  170141183460469231731687303715884105727LLL\n");

    //printf("u=%I128u\n", u);
    printf("%*u", 128/8, u);
    printf("%lu", u);
    printf("%llu", u);
    printf("%lllu", u);
    printf("%I128u", u);
    printf("  340282366920938463463374607431768211455ULLL\n");
    return 0;
}
/*

__int128.cpp: In function 'int main()':
__int128.cpp:4:16: error: unable to find numeric literal operator 
'operator""LLL'
     __int128 i=170141183460469231731687303715884105727LLL;
                ^
__int128.cpp:4:16: note: use -std=gnu++11 or -fext-numeric-literals to enable 
more built-in suffixes
__int128.cpp:5:25: error: unable to find numeric literal operator 
'operator""ULLL'
     unsigned __int128 u=340282366920938463463374607431768211455ULLL;
                         ^
__int128.cpp:5:25: note: use -std=gnu++11 or -fext-numeric-literals to enable 
more built-in suffixes
__int128.cpp:7:24: warning: format '%d' expects argument of type 'int', but 
argument 3 has type '__int128' [-Wformat=]
  printf("%*d", 128/8, i);
                        ^
__int128.cpp:11:24: warning: format '%u' expects argument of type 'unsigned 
int', but argument 3 has type '__int128 unsigned' [-Wformat=]
  printf("%*u", 128/8, u);
                        ^
__int128.cpp:12:17: warning: format '%lu' expects argument of type 'long 
unsigned int', but argument 2 has type '__int128 unsigned' [-Wformat=]
  printf("%lu", u);
                 ^
__int128.cpp:13:18: warning: unknown conversion type character 'l' in format 
[-Wformat=]
  printf("%llu", u);
                  ^
__int128.cpp:13:18: warning: too many arguments for format [-Wformat-extra-args]
__int128.cpp:14:19: warning: unknown conversion type character 'l' in format 
[-Wformat=]
  printf("%lllu", u);
                   ^
__int128.cpp:14:19: warning: too many arguments for format [-Wformat-extra-args]
__int128.cpp:15:20: warning: unknown conversion type character '1' in format 
[-Wformat=]
  printf("%I128u", u);
                    ^
__int128.cpp:15:20: warning: too many arguments for format [-Wformat-extra-args]

Fri 07/25/2014  4:07:36.01|d:\prj\test\mingw-w64\__int128|>call 
beepifexists.cmd __int128.exe
EXISTS: __int128.exe
-----failure-----

Fri 07/25/2014  4:07:37.04|d:\prj\test\mingw-w64\__int128|>if exist 
__int128.exe __int128.exe

Fri 07/25/2014  4:07:37.04|d:\prj\test\mingw-w64\__int128|>

*/
Using built-in specs.
COLLECT_GCC=f:\x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2\mingw64\bin\g++.exe
COLLECT_LTO_WRAPPER=f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-4.9.0/configure --host=x86_64-w64-mingw32 
--build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 
--with-sysr
oot=/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64 
--with-gxx-include-dir=/mingw64/x86_64-w64-mingw32/include/c++ --enable-shared 
--enabl
e-static --enable-targets=all --enable-multilib 
--enable-languages=ada,c,c++,fortran,objc,obj-c++,lto 
--enable-libstdcxx-time=yes --enable-threads=posix --enabl
e-libgomp --enable-libatomic --enable-libitm --enable-lto --enable-graphite 
--enable-checking=release --enable-fully-dynamic-string 
--enable-version-specific-ru
ntime-libs --enable-sjlj-exceptions --disable-isl-version-check 
--disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug 
--enable-bootstr
ap --disable-rpath --disable-win32-registry --disable-nls --disable-werror 
--disable-symvers --with-gnu-as --with-gnu-ld --with-arch-32=i686 
--with-arch-64=noco
na --with-tune-32=generic --with-tune-64=core2 --with-libiconv 
--with-system-zlib 
--with-gmp=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-stati
c 
--with-mpfr=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static
 --with-mpc=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-stat
ic 
--with-isl=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static 
--with-cloog=/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-st
atic --enable-cloog-backend=isl --with-pkgversion='x86_64-posix-sjlj-rev2, 
Built by MinGW-W64 project' 
--with-bugurl=http://sourceforge.net/projects/mingw-w64 C
FLAGS='-O2 -pipe 
-I/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64/opt/include
 -I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-zlib-st
atic/include 
-I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static/include' 
CXXFLAGS='-O2 -pipe -I/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix
-sjlj-rt_v3-rev2/mingw64/opt/include 
-I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-zlib-static/include 
-I/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64
-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe 
-L/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64/opt/lib 
-L/home/nixman/mingw-gcc-4
.9.0/prerequisites/x86_64-zlib-static/lib 
-L/home/nixman/mingw-gcc-4.9.0/prerequisites/x86_64-w64-mingw32-static/lib'
Thread model: posix
gcc version 4.9.0 (x86_64-posix-sjlj-rev2, Built by MinGW-W64 project)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-static' '-fopenmp' '-O2' 
'-fno-strict-aliasing' '-fwrapv' '-ftree-parallelize-loops=12' 
'-floop-parallelize-all' '-ftre
e-loop-vectorize' '-ftree-slp-vectorize' '-O2' '-fprefetch-loop-arrays' '-Wall' 
'-Wextra' '-std=c++11' '-o' '__int128.exe' '-mtune=core2' '-march=nocona' '-mthr
eads' '-pthread'
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe
 -E -quiet -v -iprefix f:/x86_64-4.9.0-release-pos
ix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/ -D_MT 
-D_REENTRANT -U_REENTRANT __int128.cpp -mtune=core2 -march=nocona -mthreads 
-std=c++11
 -Wall -Wextra -fopenmp -fno-strict-aliasing -fwrapv 
-ftree-parallelize-loops=12 -floop-parallelize-all -ftree-loop-vectorize 
-ftree-slp-vectorize -fprefetch-lo
op-arrays -O2 -O2 -fpch-preprocess -o __int128.ii
ignoring duplicate directory 
"f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include"
ignoring nonexistent directory 
"C:/Users/nixman/msys64/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64C:/Users/nixman/msys64/mingw64/lib/gc
c/x86_64-w64-mingw32/4.9.0/../../../../include"
ignoring duplicate directory 
"f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed"
ignoring duplicate directory 
"f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw3
2/include"
ignoring nonexistent directory 
"C:/Users/nixman/msys64/home/nixman/mingw-gcc-4.9.0/x86_64-490-posix-sjlj-rt_v3-rev2/mingw64/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/include
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/include-fixed
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.0/../../../../x86_64-w64-mingw32/include
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/lib/gcc/../../x86_64-w64-mingw32/include/c++/backward
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-static' '-fopenmp' '-O2' 
'-fno-strict-aliasing' '-fwrapv' '-ftree-parallelize-loops=12' 
'-floop-parallelize-all' '-ftre
e-loop-vectorize' '-ftree-slp-vectorize' '-O2' '-fprefetch-loop-arrays' '-Wall' 
'-Wextra' '-std=c++11' '-o' '__int128.exe' '-mtune=core2' '-march=nocona' '-mthr
eads' '-pthread'
 
f:/x86_64-4.9.0-release-posix-sjlj-rt_v3-rev2/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.9.0/cc1plus.exe
 -fpreprocessed __int128.ii -quiet -dumpbase __int
128.cpp -mtune=core2 -march=nocona -mthreads -auxbase __int128 -O2 -O2 -Wall 
-Wextra -std=c++11 -version -fopenmp -fno-strict-aliasing -fwrapv 
-ftree-paralleliz
e-loops=12 -floop-parallelize-all -ftree-loop-vectorize -ftree-slp-vectorize 
-fprefetch-loop-arrays -o __int128.s
GNU C++ (x86_64-posix-sjlj-rev2, Built by MinGW-W64 project) version 4.9.0 
(x86_64-w64-mingw32)
        compiled by GNU C version 4.9.0, GMP version 6.0.0, MPFR version 
3.1.2-p8, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (x86_64-posix-sjlj-rev2, Built by MinGW-W64 project) version 4.9.0 
(x86_64-w64-mingw32)
        compiled by GNU C version 4.9.0, GMP version 6.0.0, MPFR version 
3.1.2-p8, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 227ce3fddb39dd1a7e6d71261ccfa602


 
------------- 
Jim Michaels 
jmich...@yahoo.com 
j...@renewalcomputerservices.com 
http:&#x2F;&#x2F;RenewalComputerServices.com 
http:&#x2F;&#x2F;JesusnJim.com (computer repair info, programming) 
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to