Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

HugeMotherFuckingInt

Name: Anonymous 2011-08-15 7:48

I'm trying to write a HugeMotherFuckingInt processing library in C.

My first try, I stored the numbers as a char[] and computed them using basic arithmetic.

My second try, I stored the numbers as unsigned long char[]. This proved to be a faster, easier and clearer approach.

Still though, it seems to be a bit too slow.

What other data structures might result in faster execution of basic arithmetic +/*-?

Also, are there any algorithms to speed up the arithmetic operations themselves?

Name: n3n7i 2011-08-16 2:11

...i Don't know Knuth, so I can't really say
...Yes it's ugly [u can make it pretty if u want ;]
...Its being caught before it wraps (Hence no prob) // 30 out of 32 bit aint bad?
...Anything Else?


int main(){
int i=0;
Zero(aZero);
One(aOne);


Zero(aa);
One(aCount);
//One(bCount);


Entry(aa);
Set(ac, aa);

printf("\n----------------------------------\n");

while(GreaterOrWhat(aa, aCount)==1){   
   
    //Printout(aCount);
    //Printout(ac);

    Add(ac, aa, ac);
    Add(aCount, aOne, aCount);
    }

Printout(aCount);
Printout(ac);

return;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List