OSDN Git Service

Support SSE float environment in fenv.h functions.
authordannysmith <dannysmith>
Mon, 3 Jul 2006 10:32:58 +0000 (10:32 +0000)
committerdannysmith <dannysmith>
Mon, 3 Jul 2006 10:32:58 +0000 (10:32 +0000)
commit509f20053a11794bd57494a6f8c796e578939f72
treec46f8e67edbe1687caf1598c41cd33dddfb96c2a
parent7e15253569a39adfd08c99540c30b203967bf018
  Support SSE float environment in fenv.h functions.

* cpu_features.c: New file.
* cpu_features.h: New file.
* crt1.c: Include "cpu_features.h".
(__mingw_CRTStartup): Call cpu_features_init().
* Makefile.in (MING_OBJS): Add cpu_features.c.
(SRCDIST_FILES): Add cpu_features.c, cpu_features.h.
* include/fenv,h ( fenv_t;): Append  __mxcsr field.
(__MXCSR_EXCEPT_FLAG_SHIFT): New define.
(__MXCSR_EXCEPT_MASK_SHIFT): New define.
(__MXCSR_ROUND_FLAG_SHIFT): New define.
* mingwex/feclearexcept.c: Include "cpu_features.h".
Handle SSE environment.
* mingwex/fegetenv.c: Likewise.
* mingwex/feholdexcept.c: Likewise.
* mingwex/fesetenv.c: Likewise.
* mingwex/fesetexceptflag.c: Likewise.
* mingwex/fesetround.c: Likewise.
* mingwex/fetestexcept.c: Likewise.
* mingwex/feupdateenv.c: Likewise.
* mingwex/fegetround.c: Add comment.
15 files changed:
winsup/mingw/ChangeLog
winsup/mingw/Makefile.in
winsup/mingw/cpu_features.c [new file with mode: 0755]
winsup/mingw/cpu_features.h [new file with mode: 0755]
winsup/mingw/crt1.c
winsup/mingw/include/fenv.h
winsup/mingw/mingwex/feclearexcept.c
winsup/mingw/mingwex/fegetenv.c
winsup/mingw/mingwex/fegetround.c
winsup/mingw/mingwex/feholdexcept.c
winsup/mingw/mingwex/fesetenv.c
winsup/mingw/mingwex/fesetexceptflag.c
winsup/mingw/mingwex/fesetround.c
winsup/mingw/mingwex/fetestexcept.c
winsup/mingw/mingwex/feupdateenv.c