Compression that can be used with mpz_*_raw

David McKen dmlmcken at comcast.net
Wed Jun 16 03:25:15 CEST 2004


Torbjorn Granlund wrote:

>David McKen <dmlmcken at comcast.net> writes:
>
>  >>It seems there is an extra byte written after every number,
>  >>this byte has the value of '0A' in hex.
>  >>
>  >
>  >No.  If that's happening it's a bug.
>
>After each number you execute this statement:
>  
>      fputc('\n',bin_file);
>
>That explains the 0xA you're seeing in the output.  In ASCII,
>newline is encoded as the value 10 (A in hex).
>
>  
>
Stupid me. Thanks for pointing that out.


More information about the gmp-discuss mailing list