C bigint datatypes
1
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?
2
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.
3
Name:
Cudder
!MhMRSATORI!fR8duoqGZdD/iE5
2013-04-25 7:00
It's called C++ and operator overloading.
4
Name:
Anonymous
2013-04-25 8:46
Why would you want to define how large it should be? Just let it expand as needed.
5
Name:
Anonymous
2013-04-25 12:48
>>4
What the fuck are you on about?
6
Name:
Anonymous
2013-04-25 12:51
>>5 aren't we talking about Haskell?
7
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.
8
Name:
Anonymous
2013-04-25 12:54
>>3
Why are you such a faggot? Who would use sepples?
9
Name:
Anonymous
2013-04-25 12:56
>>7
But arithmetic based on structures holding arrays is?
10
Name:
Anonymous
2013-04-25 13:11
>>9
Yes. Do you even have a clue what a struct is?
11
Name:
Anonymous
2013-04-25 13:29
>>10
Oh I have a clue alright.
12
Name:
Anonymous
2013-04-25 14:00
>>11
Do you even have a clue what a clue is?
13
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.
14
Name:
Anonymous
2013-04-25 21:29
>>13
This is the best implementation ever.
15
Name:
Anonymous
2013-04-26 0:20
16
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.
17
Name:
Anonymous
2013-04-26 5:08
>>16
PIPELINE RADIX DIVIDE MY ANUS
18
Name:
Anonymous
2013-04-26 5:12
>>17
I'll divide you are anus with my massive, erect, fully prehensile penis.
19
Name:
Anonymous
2013-04-26 5:49
DIVIDE AND CONQUER MY ANUS
20
Name:
Anonymous
2013-04-26 7:54
the pleasure of being cummed inside
21
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
22
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
23
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
24
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
25
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
26
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
27
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
28
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
29
Name:
Anonymous
2013-04-26 19:18
anus
anus
anus
30
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
31
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
32
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
33
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
34
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