Leave a comment

Comments 3

(The comment has been removed)

mackys May 10 2015, 20:17:27 UTC
Because I don't know what library you're referring to, I don't know the answer to that question.

Reply


a_gs May 10 2015, 22:28:02 UTC
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).

Reply

mackys May 11 2015, 00:51:11 UTC
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.

Reply


Leave a comment

Up