diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-15 18:47:59 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-21 05:12:47 -0400 |
commit | cae55066cb1ce3f8572ddddbd3ec3c54b973a89c (patch) | |
tree | 91b106168432448ebb07766cc4e88bf778739036 /arch/mips/math-emu/ieee754sp.c | |
parent | f80cc08d78556bdc66bf0b75ec412688d8ec6907 (diff) |
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/ieee754sp.c')
-rw-r--r-- | arch/mips/math-emu/ieee754sp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/math-emu/ieee754sp.c b/arch/mips/math-emu/ieee754sp.c index 15d1e36cfe64..dd3ecd62e469 100644 --- a/arch/mips/math-emu/ieee754sp.c +++ b/arch/mips/math-emu/ieee754sp.c | |||
@@ -23,6 +23,7 @@ | |||
23 | * ######################################################################## | 23 | * ######################################################################## |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <linux/compiler.h> | ||
26 | 27 | ||
27 | #include "ieee754sp.h" | 28 | #include "ieee754sp.h" |
28 | 29 | ||
@@ -45,7 +46,7 @@ int ieee754sp_issnan(ieee754sp x) | |||
45 | } | 46 | } |
46 | 47 | ||
47 | 48 | ||
48 | ieee754sp ieee754sp_xcpt(ieee754sp r, const char *op, ...) | 49 | ieee754sp __cold ieee754sp_xcpt(ieee754sp r, const char *op, ...) |
49 | { | 50 | { |
50 | struct ieee754xctx ax; | 51 | struct ieee754xctx ax; |
51 | 52 | ||
@@ -61,7 +62,7 @@ ieee754sp ieee754sp_xcpt(ieee754sp r, const char *op, ...) | |||
61 | return ax.rv.sp; | 62 | return ax.rv.sp; |
62 | } | 63 | } |
63 | 64 | ||
64 | ieee754sp ieee754sp_nanxcpt(ieee754sp r, const char *op, ...) | 65 | ieee754sp __cold ieee754sp_nanxcpt(ieee754sp r, const char *op, ...) |
65 | { | 66 | { |
66 | struct ieee754xctx ax; | 67 | struct ieee754xctx ax; |
67 | 68 | ||