Changeset 376
- Timestamp:
- Jul 15, 2003, 1:34:02 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/testcase/floatingpoint/jsnumexception.c
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r375 r376 1 1 #include <stdio.h> 2 2 #include <float.h> 3 #include <signal.h> 3 4 4 5 #define JSDOUBLE_HI32_SIGNBIT 0x80000000 … … 32 33 { 33 34 int i = -1; 35 _control87(0x262, 0xFFF); 34 36 #if 1 35 37 if ( JSDOUBLE_IS_INT(d, i) … … 51 53 } 52 54 55 void sigfun(int sig) 56 { 57 printf("SIGFPE!\n"); 58 } 53 59 54 60 int main() … … 60 66 61 67 _control87(0x262, 0xFFF); 68 signal(SIGFPE, sigfun); 62 69 63 70 l = -1; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.