git: libm: fnstsw only takes a 16bit argument

Simon Schubert corecode at crater.dragonflybsd.org
Thu Oct 29 15:47:40 PDT 2009


commit 3eac7944b4112632ad6fb257c7ce31deda72d89f
Author: Simon Schubert <corecode at dragonflybsd.org>
Date:   Thu Oct 29 15:56:08 2009 +0100

    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.

Summary of changes:
 lib/libm/arch/amd64/fenv.c |    6 ++++--
 lib/libm/arch/amd64/fenv.h |   11 +++++++----
 lib/libm/arch/i386/fenv.c  |    6 ++++--
 lib/libm/arch/i386/fenv.h  |   11 +++++++----
 4 files changed, 22 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3eac7944b4112632ad6fb257c7ce31deda72d89f


-- 
DragonFly BSD source repository





More information about the Commits mailing list