aboutsummaryrefslogtreecommitdiffstats
path: root/fpu/softfloat-native.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-01-20 19:43:25 +0100
committerAurelien Jarno <aurelien@aurel32.net>2010-02-06 23:16:05 +0100
commitbc4347b883e8175dadef77ed9e02ccaa5e8eba94 (patch)
treeaf1f35c79686771564161e5c3525a7d55dbdad00 /fpu/softfloat-native.h
parent1d2699ae5a812b4b568ec9f19ab071f7932c4964 (diff)
arm host: fix compiler warning
Compilation for arm (native or cross) results in this warning: fpu/softfloat-native.c: In function ‘float64_round_to_int’: fpu/softfloat-native.c:387: error: control reaches end of non-void function float64_round_to_int uses special assembler code for arm and has no explicit return value. As there is no obvious reason why arm should need special code, all fpu related conditionals were removed. The remaining code is standard (C99) and compiles for arm, too. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Acked-by: Laurent Desnogues <laurent.desnogues@gmail.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'fpu/softfloat-native.h')
-rw-r--r--fpu/softfloat-native.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fpu/softfloat-native.h b/fpu/softfloat-native.h
index fe737b32b..6da0bcbbe 100644
--- a/fpu/softfloat-native.h
+++ b/fpu/softfloat-native.h
@@ -126,13 +126,6 @@ enum {
float_round_up = FP_RP,
float_round_to_zero = FP_RZ
};
-#elif defined(__arm__)
-enum {
- float_round_nearest_even = 0,
- float_round_down = 1,
- float_round_up = 2,
- float_round_to_zero = 3
-};
#else
enum {
float_round_nearest_even = FE_TONEAREST,