![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Game engine designer
Join Date: May 2005
Location: Sweden
Posts: 301
Rep Power: 4
![]() |
Safe code?
I am using this square root function from within my C++ application. But I am a little bit worried that it might not be totally fail safe. Can it in some way "screw it up" for other applications that uses the FPU at the "same" time? How should I fix it if that's so?
.586 .model flat, C .code sqrt proc x:DWORD fld x fsqrt ret sqrt endp end /Klarre
__________________
http://www.klarre.se |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Nov 2005
Location: Moseley, Birmingham, England, Earth
Posts: 51
Rep Power: 3
![]() |
Err, well Intel says it's FPU is really reliable. It won't "screw it up" for other applications because the operating system will take care of it - it should save the state of the CPU and FPU before switching to a different application.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|