Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2004-11-22  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/i386/fpu_control.h: Add volatile to the asms.
	Patch by Alexander Stohr.
  • Loading branch information
Ulrich Drepper committed Nov 22, 2004
1 parent 6535f55 commit bd5a6ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2004-11-22 Ulrich Drepper <drepper@redhat.com>

* sysdeps/i386/fpu_control.h: Add volatile to the asms.
Patch by Alexander Stohr.

2004-11-22 Jakub Jelinek <jakub@redhat.com>

* nscd/nscd_getai (__nscd_getai): Avoid memory and file descriptor
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/i386/fpu_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__)));
Note that the use of these macros is no sufficient anymore with
recent hardware. Some floating point operations are executed in
the SSE/SSE2 engines which have their own control and status register. */
#define _FPU_GETCW(cw) __asm__ ("fnstcw %0" : "=m" (*&cw))
#define _FPU_SETCW(cw) __asm__ ("fldcw %0" : : "m" (*&cw))
#define _FPU_GETCW(cw) __asm__ __volatile__ ("fnstcw %0" : "=m" (*&cw))
#define _FPU_SETCW(cw) __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw))

/* Default control word set at startup. */
extern fpu_control_t __fpu_control;
Expand Down

0 comments on commit bd5a6ce

Please sign in to comment.