gfxgfx
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
logo
 
gfx gfx
gfx
847 Posts in 273 Topics by 2533 Members - Latest Member: pabloosbor September 10, 2010, 05:51:26 PM
*
gfx*HomeHelpSearchLoginRegistergfx
gfxgfx
      « previous next »
Pages: [1] Print
Author Topic: Floating Point Math Control  (Read 812 times)
liofin
Newbie
*
Posts: 3


View Profile
« on: February 28, 2010, 01:43:19 PM »

To enable this control fenv.inc file shall be included. Alas, I was unable to find it. I have Absoft ProFortran v10.1. Please advice.
Logged
Mike Linacre
Full Member
***
Posts: 183


View Profile
« Reply #1 on: February 28, 2010, 04:12:00 PM »

liofin, please see the Absoft FAQ. For instance, http://www.absoft.com/Support/FAQ/linux90tfaq.html - it shows the contents of fenv.inc
Logged
liofin
Newbie
*
Posts: 3


View Profile
« Reply #2 on: March 01, 2010, 02:39:35 PM »

I am sorry for not being quite clear.

I am trying to add a code by following example in a user's manual to get current state:

include "fenv.inc"

int state

call fpcontrol (0, state )

This code does not compile because it does not find fenv.inc, and it does not recognize fpcontrol as a valid function. I assume that fenv.inc has fpcontrol prototype, and, probably, a library with fpcontrol code shall be linked.

Please advice.
Logged
Mike Linacre
Full Member
***
Posts: 183


View Profile
« Reply #3 on: March 01, 2010, 05:58:15 PM »

liofin, did you read that FAQ? Combine that answer with some Google searching and you can code everything yourself.
Logged
liofin
Newbie
*
Posts: 3


View Profile
« Reply #4 on: March 01, 2010, 06:53:49 PM »

Thank you for your advice but I did not find source code for fpcontrol anywhere on Google. Otherwise I would definitely follow your advice. Maybe somebody knows where to find it? I would appreciate.
Logged
gfx
Pages: [1] Print 
gfx
Jump to:  
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!