[lkml]   [1996]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectSignals and the FPU control word: documented behavior?
Hello world,

In looking for a bug in CMUCL I found strange behavior in the
interactions between signals and the fpu control word.

In the demonstration (typescript) you can see that on 2.0.26 the control
word is reset in the signal handler. Shouldn't we document, or change the

Groetjes, Peter

It's logic Jim, but not as we know it.
finger for pgp public key.
Version: 3.12
GS/CS/L/C d->? s+:++>+@ a-- C++(+++)>$ ULOS++>++++$ P+>++++ L+++>++++
E>++ W+(--) U++>+++ o>+ K? w--- O>+@ M-? V? PS++ PE(--) Y+ PGP+>++
t++>+++ 5++ X++>+++ R tv b+++>++++ DI++ D++@ G+>++ e++>++++ h!>+ r-@ y>+++**@
Script started on Mon Dec 2 07:22:13 1996
~/fakeroot/usr/src/cmucl/test$ ./t
main: 370
handler: 37f
main: 370

~/fakeroot/usr/src/cmucl/test$ exit

Script done on Mon Dec 2 07:22:20 1996
#include <stdio.h>
#include <math.h>
#include <signal.h>
#include <i386/fpu_control.h>

void handler(void)
printf("handler: %x\n", __getfpucw());

int main(int argc,char *argv[])
printf("main: %x\n",__getfpucw());
 \ /
  Last update: 2005-03-22 13:37    [W:0.046 / U:3.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site