diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-16 00:47:59 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-21 11:12:47 +0200 |
commit | cae55066cb1ce3f8572ddddbd3ec3c54b973a89c (patch) | |
tree | 91b106168432448ebb07766cc4e88bf778739036 /arch/mips/math-emu/ieee754.c | |
parent | f80cc08d78556bdc66bf0b75ec412688d8ec6907 (diff) | |
download | linux-cae55066cb1ce3f8572ddddbd3ec3c54b973a89c.tar.gz linux-cae55066cb1ce3f8572ddddbd3ec3c54b973a89c.tar.bz2 linux-cae55066cb1ce3f8572ddddbd3ec3c54b973a89c.zip |
MIPS: math-emu: Mark exception handling functions as __cold.
Optimizes the code flow and shaves of half a percent of the math-emu
code size.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/ieee754.c')
-rw-r--r-- | arch/mips/math-emu/ieee754.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/math-emu/ieee754.c b/arch/mips/math-emu/ieee754.c index 0015cf1989da..e7c314c9f46a 100644 --- a/arch/mips/math-emu/ieee754.c +++ b/arch/mips/math-emu/ieee754.c @@ -28,6 +28,7 @@ * ######################################################################## */ +#include <linux/compiler.h> #include "ieee754int.h" #include "ieee754sp.h" @@ -96,7 +97,7 @@ const struct ieee754sp_konst __ieee754sp_spcvals[] = { }; -int ieee754si_xcpt(int r, const char *op, ...) +int __cold ieee754si_xcpt(int r, const char *op, ...) { struct ieee754xctx ax; @@ -111,7 +112,7 @@ int ieee754si_xcpt(int r, const char *op, ...) return ax.rv.si; } -s64 ieee754di_xcpt(s64 r, const char *op, ...) +s64 __cold ieee754di_xcpt(s64 r, const char *op, ...) { struct ieee754xctx ax; |