|
![]() |
#1 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
![]() Hi,
I've been recently looking into algorithms for identifying nth root of a number. It appears that in order to achieve maximum efficiency, I should implement the algorithm so that the FPU coprocessor is being used for the floating-point operations rather than the main CPU. My question is fairly simple: Where can I find some documentation to get started? My usual sources of reference for C++ programming produce nothing at all. |
||
![]() ![]() |
|
![]() |
#2 | ||
Join Date: Nov 2007
Location: Etten, Netherlands
Posts: 42
|
![]() That's because it's not needed. Current compilers will automatically use the FPU when you use floating point math. Just use floats or doubles and you will automatically benefit from the FPU, unless you explicitly enable emulation (which was used for pre-Pentium processors).
|
||
![]() ![]() |
|
![]() |
#3 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: ,
Posts: 4,613
|
![]() Most modern CPUs don't have a math co-processor "per se" any longer, at least according to the Wikipedia. I would be surprised to hear that you need to tell a compiler how to do each floating point operation. I think you're off track, although I know nothing specific to this.
__________________
Life starts every day anew. Prospects not so good... |
||
![]() ![]() |
|
![]() |
#4 | ||
![]() ![]() ![]() ![]() Join Date: Mar 2011
Location: ,
Posts: 13
|
![]() Yep, just like Japo said, FPUs (or "math coprocessors") that are outside of the main CPU's die are a thing of the past. Since the times when Intel Pentium Pro/Pentium II processors reigned over the desktop highlands, FPUs sit inside the main CPU.
If you REALLY need to specifically do something on the FPU, you'd have to resort to some kind of specific math library for C/C++ or resort to x86 assembler code. Other then that, the compiler does the job for ya, just like Kippesoep said. |
||
![]() ![]() |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adventures in Math | marko river | Games Discussion | 10 | 16-11-2011 02:45 PM |
Adventures in Math | christhecoolboy | On site | 1 | 28-05-2010 11:13 PM |
Help me with my Math! | Fubb | Blah, blah, blah... | 7 | 04-04-2010 09:19 PM |
Merlin's Math | ianbasore | Troubleshooting | 1 | 24-05-2006 12:36 PM |
Help Me With Math | Tulac | Blah, blah, blah... | 43 | 15-06-2005 02:19 AM |
|
|
||
  |