Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionstoring the largest number Pin
trioum18-Oct-08 2:33
trioum18-Oct-08 2:33 
AnswerRe: storing the largest number Pin
Rajesh R Subramanian18-Oct-08 2:39
professionalRajesh R Subramanian18-Oct-08 2:39 
GeneralRe: storing the largest number Pin
trioum18-Oct-08 2:43
trioum18-Oct-08 2:43 
AnswerRe: storing the largest number Pin
Rajesh R Subramanian18-Oct-08 2:46
professionalRajesh R Subramanian18-Oct-08 2:46 
GeneralRe: storing the largest number Pin
Cedric Moonen18-Oct-08 2:54
Cedric Moonen18-Oct-08 2:54 
GeneralRe: storing the largest number Pin
Rajesh R Subramanian18-Oct-08 3:04
professionalRajesh R Subramanian18-Oct-08 3:04 
GeneralRe: storing the largest number Pin
CPallini18-Oct-08 2:56
mveCPallini18-Oct-08 2:56 
GeneralRe: storing the largest number Pin
Member 419459323-Oct-08 5:27
Member 419459323-Oct-08 5:27 
Rajesh R Subramanian wrote:
GMP BigNum library[^] is your best bet perhaps.


Rajesh, do you know of any good implementations of BigNum that are not Gnu based, i.e. use MS tools like MASM? I have Googled "multi precision math" and went through all of the hits, and the results (there were 97) were all about BigNum, or proprietary for sale products, or for Java, or were white papers. Nothing there about a PC based MS implementation. I even searched the CP articles and found no hits.

I downloaded the GMP version and started looking at the ASM source, but without the GCC compiler and its tools, the code is not complete. It needs to be expanded by the Gnu M4 macros and assembled by GAS (Gnu Assembler?), and even then I don't know whether or not it produces anything like a .LST file that would actually indicate exactly what instructions are executing at which locations to gain their reported speed by taking advantage of cashing, etc. I really don't want to go this route, I want to stick with MS tools and don't even want the C++ front end, strictly MASM.

I do have an integer implementation of a multi precision math library and was thinking of expanding it to a floating point version and was looking to see how it stacked up with "the best". As far as I could easily determine, the BigNum algorithms matched mine. Mine were home brew - what worked fastest, theirs were based on the experts like Knuth. I went to my library and cracked open Knuth, Vol 2, for the first time to see what the expert had to say. Enlightening. I have also done a thorough read of the AMD specs on my Athlon and have used many of their suggestions.

Dave Augustine.
GeneralRe: storing the largest number Pin
Rajesh R Subramanian23-Oct-08 21:46
professionalRajesh R Subramanian23-Oct-08 21:46 
GeneralRe: storing the largest number Pin
Member 419459324-Oct-08 5:37
Member 419459324-Oct-08 5:37 
AnswerRe: storing the largest number Pin
CPallini18-Oct-08 2:57
mveCPallini18-Oct-08 2:57 
GeneralRe: storing the largest number Pin
Rajesh R Subramanian18-Oct-08 3:05
professionalRajesh R Subramanian18-Oct-08 3:05 
AnswerRe: storing the largest number Pin
Mark Salsbery18-Oct-08 8:34
Mark Salsbery18-Oct-08 8:34 
GeneralRe: storing the largest number Pin
CPallini18-Oct-08 9:43
mveCPallini18-Oct-08 9:43 
GeneralRe: storing the largest number Pin
Mark Salsbery18-Oct-08 9:47
Mark Salsbery18-Oct-08 9:47 
GeneralHasta la vista! Pin
CPallini18-Oct-08 10:00
mveCPallini18-Oct-08 10:00 
AnswerRe: storing the largest number Pin
David Crow18-Oct-08 14:17
David Crow18-Oct-08 14:17 
QuestionString Conversion C++ <--> VB Pin
ganralf18-Oct-08 0:54
ganralf18-Oct-08 0:54 
AnswerRe: String Conversion C++ <--> VB Pin
CPallini18-Oct-08 1:46
mveCPallini18-Oct-08 1:46 
GeneralRe: String Conversion C++ <--> VB Pin
ganralf18-Oct-08 2:22
ganralf18-Oct-08 2:22 
GeneralRe: String Conversion C++ <--> VB Pin
CPallini18-Oct-08 2:41
mveCPallini18-Oct-08 2:41 
GeneralRe: String Conversion C++ <--> VB Pin
ganralf18-Oct-08 2:58
ganralf18-Oct-08 2:58 
GeneralRe: String Conversion C++ <--> VB [modified] Pin
CPallini18-Oct-08 3:07
mveCPallini18-Oct-08 3:07 
GeneralRe: String Conversion C++ <--> VB Pin
ganralf18-Oct-08 3:12
ganralf18-Oct-08 3:12 
GeneralRe: String Conversion C++ <--> VB Pin
CPallini18-Oct-08 3:23
mveCPallini18-Oct-08 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.