Jump to page: 1 2
Thread overview
Large integers
Sep 04, 2003
Matthew Wilson
Sep 04, 2003
DeadCow
Sep 04, 2003
Matthew Wilson
Sep 04, 2003
DeadCow
Sep 04, 2003
Matthew Wilson
Sep 05, 2003
Mike Wynn
Sep 05, 2003
Matthew Wilson
Sep 04, 2003
Walter
Sep 04, 2003
Matthew Wilson
Sep 04, 2003
Walter
Sep 05, 2003
Sean L. Palmer
Sep 05, 2003
Walter
Sep 05, 2003
Philippe Mori
Sep 06, 2003
Sean L. Palmer
Sep 15, 2003
Walter
Sep 04, 2003
Charles Sanders
Sep 04, 2003
Walter
Sep 04, 2003
Matthew Wilson
Sep 06, 2003
Ben Hinkle
Sep 06, 2003
Matthew Wilson
September 04, 2003
Walter

How hard would it be to support larger than 64-bit integers? It'd be nice to have arbitrarily large integers, though I expect there are various important objections to this.

Matthew


September 04, 2003
"Matthew Wilson" <matthew@stlsoft.org> a écrit dans le message news: bj7enj$e4m$1@digitaldaemon.com...
> Walter
>
> How hard would it be to support larger than 64-bit integers? It'd be nice
to
> have arbitrarily large integers, though I expect there are various
important
> objections to this.
>
> Matthew

You mean big interger primitive ? What about implementing it over object like in java ?

-- Nicolas Repiquet


September 04, 2003
A lot of grief in the code generator <g>. I think this would be a proper candidate for a UDT.

"Matthew Wilson" <matthew@stlsoft.org> wrote in message news:bj7enj$e4m$1@digitaldaemon.com...
> Walter
>
> How hard would it be to support larger than 64-bit integers? It'd be nice
to
> have arbitrarily large integers, though I expect there are various
important
> objections to this.
>
> Matthew
>
>


September 04, 2003
> > How hard would it be to support larger than 64-bit integers? It'd be
nice
> to
> > have arbitrarily large integers, though I expect there are various
> important
> > objections to this.
> >
> > Matthew
>
> You mean big interger primitive ? What about implementing it over object like in java ?

What about it? (Not sure what your comment means. ;/ )


September 04, 2003
> A lot of grief in the code generator <g>. I think this would be a proper candidate for a UDT.

Does that apply to larger fixed size integers in addition to arbitrary large integers? Just giving us 128-bits would be a killer?



September 04, 2003
"Matthew Wilson" <matthew@stlsoft.org> wrote in message news:bj8ail$1n3d$1@digitaldaemon.com...
> > A lot of grief in the code generator <g>. I think this would be a proper candidate for a UDT.
>
> Does that apply to larger fixed size integers in addition to arbitrary
large
> integers? Just giving us 128-bits would be a killer?

With 64 bit registers, it would be trivial. With register quads, though, it's a significant problem.


September 04, 2003
whats udt ?

"Walter" <walter@digitalmars.com> wrote in message news:bj89ai$1l9g$1@digitaldaemon.com...
> A lot of grief in the code generator <g>. I think this would be a proper candidate for a UDT.
>
> "Matthew Wilson" <matthew@stlsoft.org> wrote in message news:bj7enj$e4m$1@digitaldaemon.com...
> > Walter
> >
> > How hard would it be to support larger than 64-bit integers? It'd be
nice
> to
> > have arbitrarily large integers, though I expect there are various
> important
> > objections to this.
> >
> > Matthew
> >
> >
>
>


September 04, 2003
User defined type. Such as std::complex in C++.

"Charles Sanders" <sanders-consulting@comcast.net> wrote in message news:bj8d44$1qvo$1@digitaldaemon.com...
> whats udt ?
>
> "Walter" <walter@digitalmars.com> wrote in message news:bj89ai$1l9g$1@digitaldaemon.com...
> > A lot of grief in the code generator <g>. I think this would be a proper candidate for a UDT.
> >
> > "Matthew Wilson" <matthew@stlsoft.org> wrote in message news:bj7enj$e4m$1@digitaldaemon.com...
> > > Walter
> > >
> > > How hard would it be to support larger than 64-bit integers? It'd be
> nice
> > to
> > > have arbitrarily large integers, though I expect there are various
> > important
> > > objections to this.
> > >
> > > Matthew
> > >
> > >
> >
> >
>
>


September 04, 2003
"Matthew Wilson" <matthew@stlsoft.org> a écrit dans le message news: bj89il$1llr$1@digitaldaemon.com...

> What about it? (Not sure what your comment means. ;/ )

Scuse my english =)

Doesn't something like this suit your needs ? :

class BigInteger {

    private byte[] data;

    BigInteger opadd( ...
    BigInteger opsub( ...

    ...

}


BigInteger a = BigInteger("123140090234823441284120");
BigInteger b = BigInteger("43421394023949342");
BigInteger c = a * b;

....

-- Nicolas Repiquet


September 04, 2003
> > What about it? (Not sure what your comment means. ;/ )
>
> Scuse my english =)

No need. Your English is infinitely better than my French. Je suis tres desole

> Doesn't something like this suit your needs ? :
>
> class BigInteger {
>
>     private byte[] data;
>
>     BigInteger opadd( ...
>     BigInteger opsub( ...
>
>     ...
>
> }
>
>
> BigInteger a = BigInteger("123140090234823441284120");
> BigInteger b = BigInteger("43421394023949342");
> BigInteger c = a * b;

I guess it depends on what I mean by my needs. ;)

I'd like bigger integers to not be heap based, and to look and feel like the currently supported fundamental integers. However, I recognise that there's a practical limit to this, which may already have been reached with long.



« First   ‹ Prev
1 2