Project

General

Profile

« Previous | Next » 

Revision 41230

  • bignum.c (rb_integer_pack_internal): Renamed from rb_integer_pack
    and overflow_2comp argument added.
    (rb_integer_pack): Just call rb_integer_pack_internal.
    (rb_integer_pack_2comp): New function.

  • internal.h (rb_integer_pack_2comp): Declared.

  • sprintf.c (rb_str_format): Use rb_integer_pack and
    rb_integer_pack_2comp to format binary/octal/hexadecimal integers.
    (ruby_digitmap): Declared.
    (remove_sign_bits): Removed.
    (BITSPERDIG): Ditto.
    (EXTENDSIGN): Ditto.