delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Generating Exponents FAST! |
Date: | 22 May 2001 10:26:49 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 20 |
Message-ID: | <9edet9$hev$1@nets3.rz.RWTH-Aachen.DE> |
References: | <0q9kgtgddkvj69od8094172vodtrpubgsh AT 4ax DOT com> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 990527209 17887 137.226.32.75 (22 May 2001 10:26:49 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 22 May 2001 10:26:49 GMT |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Radical NetSurfer <radsmail AT juno DOT com> wrote: > pow(10, ep); is one obvious approach > Which requires the time and computational overhead of whatever > is involved in pow() function.... ... which may easily be faster than anything you could come up with. Go figure before you make blind assumptions about the quality of library code --- you do have access to all the sources, so why not peek into them to check for yourself? > IS THERE A MORE DIRECT ROUTE to generating 10 ^ ep? Of course: e.g. to not generate them at all. Precompute a table of such values, if you really only need so few of them. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |