Solved

long integers in C

Posted on 2006-11-19
10
218 Views
Last Modified: 2010-04-16
I want somehow to implement in ANSI C an abstract data type for very long integers. A secure limit would be around 100!, which means even 64bit numbers can be insufficient.
If anybody has a link to a site with source code I'd be grateful.

Thanks in advance,
john
0
Comment
Question by:jonn_g
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 84

Expert Comment

by:ozo
Comment Utility
0
 
LVL 24

Expert Comment

by:fridom
Comment Utility
lcc-win32 provides among others int128 and bignums.

Regards
Friedrich
0
 

Author Comment

by:jonn_g
Comment Utility
I am developing this program in Fedora Core 5 linux system and I'd prefer if someone could provide a working source code just for the ADT BigNumber and not a whole C library.
0
 
LVL 24

Expert Comment

by:fridom
Comment Utility
Would you mind to explain me the difference?  What's different form working source code and a C library? In what way would you expect the sources? Object files?

Friedrich
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 84

Expert Comment

by:ozo
Comment Utility
The GMP library does provide source code.
0
 
LVL 16

Expert Comment

by:AlexNek
Comment Utility
0
 

Author Comment

by:jonn_g
Comment Utility
Well creating variables that are of long double type I managed to compute even 100! with a classic recursive factorial function. So to be honest, there is no problem anymore and I didn't use any of your answers...
0
 
LVL 84

Expert Comment

by:ozo
Comment Utility
long double type won't be able to tell the difference between 100! and 100!+1, but if you don't require that, that's fine.
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
Comment Utility
PAQed with points refunded (175)

DarthMod
Community Support Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
This is about my first experience with programming Arduino.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now