/* IEEE: same as above, but exceptions */
#define _FPU_IEEE 0x137f
+/* Type of the control word. */
+typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__)));
+
/* Macros for accessing the hardware control word. */
#define _FPU_GETCW(cw) __asm__ ("fnstcw %0" : "=m" (cw))
#define _FPU_SETCW(cw) __asm__ ("fldcw %0" : "m" (cw))
-/* private namespace. It should only be used in init-first.o. */
-extern unsigned short __fpu_control;
+/* Default control word set at startup. */
+extern fpu_control_t __fpu_control;
__BEGIN_DECLS
-/* called in init-first.o. It can be used to manipulate 387 control word. */
-extern void __setfpucw __P ((unsigned short));
+/* Called at startup. It can be used to manipulate fpu control register. */
+extern void __setfpucw __P ((fpu_control_t));
__END_DECLS