Sha256: a9aefea66f70da16a4d342021ce82c64b2e57228001342e11ad5111cc9af61d4

Contents?: true

Size: 1.83 KB

Versions: 12

Compression:

Stored size: 1.83 KB

Contents

o:$YARD::CodeObjects::MethodObject:
@name:~:@docstringIC:YARD::Docstring"Inverts the bits in big. As Bignums are conceptually infinite
length, the result acts as if it had an infinite number of one
bits to the left. In hex representations, this is displayed
as two periods to the left of the digits.

  sprintf("%X", ~0x1122334455)    #=> "..FEEDDCCBBAA"
:@objectu:YARD::StubProxy
Bignum#~:
@summary0:	@all">Inverts the bits in big. As Bignums are conceptually infinite
length, the result acts as if it had an infinite number of one
bits to the left. In hex representations, this is displayed
as two periods to the left of the digits.

  sprintf("%X", ~0x1122334455)    #=> "..FEEDDCCBBAA"


@overload ~big
  @return [Integer]:@ref_tags[:
@tags[o:YARD::Tags::OverloadTag
;
u;
Bignum#~;;;IC;	"
;
u;
Bignum#~;0;
"@return [Integer];[;[o:YARD::Tags::Tag
;
0;0:@types["Integer:
@text":@tag_name"return;0:@parameters[;0:@signature"	~big;"
overload:@current_file_has_commentsF:@scope:
instance;[:@docstring_extra0:@files[["
bignum.c0:@namespaceu;Bignum:
@path"
Bignum#~;[:@visibility:public:@source"Â/*
 * call-seq:
 *     ~big  =>  integer
 *
 * Inverts the bits in big. As Bignums are conceptually infinite
 * length, the result acts as if it had an infinite number of one
 * bits to the left. In hex representations, this is displayed
 * as two periods to the left of the digits.
 *
 *   sprintf("%X", ~0x1122334455)    #=> "..FEEDDCCBBAA"
 */

static VALUE
rb_big_neg(x)
    VALUE x;
{
    VALUE z = rb_big_clone(x);
    long i;
    BDIGIT *ds;

    if (!RBIGNUM(x)->sign) get2comp(z);
    ds = BDIGITS(z);
    i = RBIGNUM(x)->len;
    if (!i) return INT2FIX(~0);
    while (i--) ds[i] = ~ds[i];
    RBIGNUM(z)->sign = !RBIGNUM(z)->sign;
    if (RBIGNUM(x)->sign) get2comp(z);

    return bignorm(z);
}:@source_type:c

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_18/objects/Bignum/_7E_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_18/objects/Bignum/_7E_i.dat