GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How to Turn Off Floating-Point Exception Inter...
Operating System - OpenVMS
1848960
Members
7903
Online
104039
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 03:07 AM
01-09-2006 03:07 AM
How to Turn Off Floating-Point Exception Interruption
If I have overflowed floating-point values in my program, the program is interrupted and floating-point value exception message is returned. Is there any way to turn off this exception handling, like a compiler option or system function?
I'm running on a OpenVMS Alpha system. I mainly care about VAX floating-point types. I've tried cc option /PDSC_MASK=SILENT but saw no difference. I believe there's no such systerm functions as feholdexcept() on Unix to turn off exception complaint. My short test program is attached below.
Thanks for helping me.
Ray
------------------
#include
#include
int main(void)
{
int i, j;
double d;
unsigned char *dp = (unsigned char*)&d;
float f;
for (i=0; i<16; i++) {
for (j=0; j dp[j] = rand();
f = (float)d;
printf("f=%g\n", (float)f);
}
return 0;
}
I'm running on a OpenVMS Alpha system. I mainly care about VAX floating-point types. I've tried cc option /PDSC_MASK=SILENT but saw no difference. I believe there's no such systerm functions as feholdexcept() on Unix to turn off exception complaint. My short test program is attached below.
Thanks for helping me.
Ray
------------------
#include
#include
int main(void)
{
int i, j;
double d;
unsigned char *dp = (unsigned char*)&d;
float f;
for (i=0; i<16; i++) {
for (j=0; j
f = (float)d;
printf("f=%g\n", (float)f);
}
return 0;
}
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2006 03:46 AM
01-09-2006 03:46 AM
Re: How to Turn Off Floating-Point Exception Interruption
Made two submissions. Close this one.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP