Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

gcc 8.2.0

Options
Warnings
Boost 1.70.0
C++2a(GNU)
no pedantic

Author

anonymous

almost 6 years ago

fastdiv10.h
char_traits_.h

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-8.2.0/include -std=gnu++2a
 ABCDEFGHIJKLMNOPQRSTUVWXYZ123
 HelloWorld.quot = -922337203685477580
 HelloWorld.rem  = -7
 HelloWorld.quot = +922337203685477580
 HelloWorld.rem  = +7

 XtoA_CompilersDiv
 *****************
 111

 XtoA_
 *****************
+0
+0
+127
-128
+32767
-32768
+2147483647
-2147483648
+9223372036854775807
-9223372036854775808
+18446744073709551615

 UtoA_CompilersDiv
 *****************
 127
-128
 32767
-32768
 2147483647
-2147483648
 9223372036854775807
-9223372036854775808
 18446744073709551615

 HexDigits : 16   8   4   2   1   1   
 DecDigits : 20   10   5   3   2   1   
 OctDigits : 22   11   6   3   2   2   1   
 BinDigits : 64   32   16   8   4   4   1   

 XtoA_right_adjust
 *****************
              +0.00127
              -0.00128
              +0.32767
              -0.32768
          +21474.83647
          -21474.83648
 +92233720368547.75807
 -92233720368547.75808
+184467440737095.51615

  INT8_MIN : 0b10000000
 UINT8_MAX : 0b11111111

 UtoA_CompilersDiv with radix
 ****************************
 Hex :  7f
        80
 Dec :  127
       -128
 Oct :  177
        200
 Bin :  1111111
        10000000

 Any Key to continue
Hello, Wandbox!
Exit Code:
0