Ignore:
Timestamp:
Jun 27, 2001, 5:34:42 PM (24 years ago)
Author:
sandervl
Message:

hack for weird fpu performance issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/thread.cpp

    r6129 r6132  
    1 /* $Id: thread.cpp,v 1.29 2001-06-27 13:35:46 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.30 2001-06-27 15:34:41 sandervl Exp $ */
    22
    33/*
     
    132132  Win32DllBase::attachThreadToAllDlls();          //send DLL_THREAD_ATTACH message to all dlls
    133133
    134   //Reset FPU to default values (control word 0x27F; same as in NT)
    135   _fpreset();
     134  //SvL: Leave this here. For some weird reason this affects performance
     135  //     of floating point apps. (at least for one fortan benchmark)
     136  double tmp;
     137  //Set FPU control word to 0x27F (same as in NT)
     138  CONTROL87(0x27F, 0xFFF);
    136139  rc = AsmCallThreadHandler(winthread, userdata);
    137140
Note: See TracChangeset for help on using the changeset viewer.