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

C bigint datatypes

Name: Anonymous 2013-04-25 1:06

Instead of defining datatypes with preset sizes for big integers in C (like GMP and other libraries do), why not define operations on them for arbitrarily sized character arrays so that you can define how large you want your integer to be?

Name: Anonymous 2013-04-25 1:20

You could approach the problem of large integers that way. I would question who would need that sort of flexibility. The only use case I can consider for bignum is for big data processing applications and they'd want to do their work efficiently.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-04-25 7:00

It's called C++ and operator overloading.

Name: Anonymous 2013-04-25 8:46

Why would you want to define how large it should be? Just let it expand as needed.

Name: Anonymous 2013-04-25 12:48

>>4
What the fuck are you on about?

Name: Anonymous 2013-04-25 12:51

>>5 aren't we talking about Haskell?

Name: Anonymous 2013-04-25 12:53

Part of the idea of c is that it is closely tied to machine languages. Arithmetic on arbitrarily sized character arrays is not hardware supported.

Name: Anonymous 2013-04-25 12:54

>>3
Why are you such a faggot? Who would use sepples?

Name: Anonymous 2013-04-25 12:56

>>7
But arithmetic based on structures holding arrays is?

Name: Anonymous 2013-04-25 13:11

>>9
Yes. Do you even have a clue what a struct is?

Name: Anonymous 2013-04-25 13:29

>>10
Oh I have a clue alright.

Name: Anonymous 2013-04-25 14:00

>>11
Do you even have a clue what a clue is?

Name: Anonymous 2013-04-25 18:08


typedef struct bigint {
  char *n;
  int size;
} bigint;

/* set size in number of digits and initialize to 0 */
bigint set_size(int bytes) {
  int i;
  bigint r;
 
  r.size = bytes;
  r.n = (char *) malloc(bytes);
 
  for(i = 0; i < bytes; i++) {
    r.n[i] = '0';
  }

  return(r);
}


Of course this requires the user to know he has to free that at some point, but other than that, it seems pretty flexible and powerful.

Name: Anonymous 2013-04-25 21:29

>>13
This is the best implementation ever.

Name: Anonymous 2013-04-26 0:20

>>13 lel

Name: Anonymous 2013-04-26 4:40

The problem is, you'll implement your BigInts a way or another depending on what you do with them.
If you want to print them often (in base 10), using base 10^9 in int32_t may be a good idea, whereas if you want to print this shit in hexa or binary, a regular implementation like >>13 is better.

Name: Anonymous 2013-04-26 5:08

>>16
PIPELINE RADIX DIVIDE MY ANUS

Name: Anonymous 2013-04-26 5:12

>>17
I'll divide you are anus with my massive, erect, fully prehensile penis.

Name: Anonymous 2013-04-26 5:49

DIVIDE AND CONQUER MY ANUS

Name: Anonymous 2013-04-26 7:54

the pleasure of being cummed inside

Name: Anonymous 2013-04-26 13:38



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 13:47



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 13:53



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 14:00



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 14:08



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 14:23



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 14:40



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 14:50



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-26 19:18

  anus
  anus
  anus

Name: Anonymous 2013-04-27 0:44



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-28 21:52



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-28 22:00



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-28 22:08



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-28 22:14



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

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