libm: fnstsw only takes a 16bit argument
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 29 Oct 2009 14:56:08 +0000 (15:56 +0100)
committerSimon 'corecode' Schubert <corecode@fs.ei.tum.de>
Thu, 29 Oct 2009 17:25:23 +0000 (10:25 -0700)
commit3eac7944b4112632ad6fb257c7ce31deda72d89f
tree5b5f87aa94449fc0914ab91fd87360b2fa922e02
parent187b297ab6cc32ae42014c3f5bd17ad810c9657d
libm: fnstsw only takes a 16bit argument

Binutils-2.20 gas polices more strictly and does not accept 32bit
arguments to the fnstsw opcode.  Please it by declaring all arguments as
__uint16_t.  This possibly even fixes some latent bugs due to missing
initialization of the top 16 bits.
lib/libm/arch/amd64/fenv.c
lib/libm/arch/amd64/fenv.h
lib/libm/arch/i386/fenv.c
lib/libm/arch/i386/fenv.h