softfloat: change default nan definitions to variables
commit789ec7ce20f34b175b3983707e077e8d67385126
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2011 10:10:29 +0000 (28 12:10 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jul 2011 13:25:45 +0000 (29 08:25 -0500)
tree73a15cbadf91cfaac068f34a7eee5317ccddec02
parent332ae28dad2d4f155e1ad82bf89a605c2b2710ba
softfloat: change default nan definitions to variables

Most definitions in softfloat.h are really target-independent, but the
file is not because it includes definitions of the default NaN values.
Change those to variables to allow including softfloat.h from files that
are not compiled per-target.  By making them const, the compiler is
allowed to optimize them into softfloat functions that use them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
fpu/softfloat-specialize.h
fpu/softfloat.h