Skip to content
Snippets Groups Projects
Commit 8817c248 authored by rtoy's avatar rtoy
Browse files

Use fpu_control.h and _FPU_SETCW to set the FPU control word. Mostly

from Rex Dieter, for gcc4 compatibility.
parent ca0e14c4
No related branches found
No related tags found
No related merge requests found
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.h,v 1.17 2005/09/15 18:26:50 rtoy Exp $ /* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.h,v 1.18 2005/10/05 17:23:56 rtoy Exp $
This code was written as part of the CMU Common Lisp project at This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University, and has been placed in the public domain. Carnegie Mellon University, and has been placed in the public domain.
...@@ -80,7 +80,8 @@ typedef struct sigcontext_struct sigcontext; ...@@ -80,7 +80,8 @@ typedef struct sigcontext_struct sigcontext;
#define GET_CONTEXT int code=0; struct sigcontext_struct *context=&contextstruct; #define GET_CONTEXT int code=0; struct sigcontext_struct *context=&contextstruct;
#endif #endif
#define setfpucw(cw) asm("fldcw %0" : : "m" (cw)) #include <fpu_control.h>
#define setfpucw(cw) {fpu_control_t cw_tmp=cw;_FPU_SETCW(cw_tmp);}
#define sigvec sigaction #define sigvec sigaction
#define sv_mask sa_mask #define sv_mask sa_mask
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment