You can always use divide and modulo, and to get chunks of decimal representation of a number, and print their zero-padded text representations in a sequence. Typical such procedure simply used "chunks" one decimal digit long, but nothing prevents people from using 19-digit or 9-digit ones (so they will fit into 64-bit or 32-bit unsigned that can be printed).
Very true. And indeed that's pretty much what print_u128() does.
I just think that if GCC is going to include a 128 bit type in their libc, they should also add a way to print it. Even if it's not printf(). Something.
Comments 3
(The comment has been removed)
Reply
Reply
I just think that if GCC is going to include a 128 bit type in their libc, they should also add a way to print it. Even if it's not printf(). Something.
Reply
Leave a comment