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