From cae55066cb1ce3f8572ddddbd3ec3c54b973a89c Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 16 Apr 2014 00:47:59 +0200 Subject: 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 --- arch/mips/math-emu/ieee754sp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'arch/mips/math-emu/ieee754sp.c') 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 @@ * ######################################################################## */ +#include #include "ieee754sp.h" @@ -45,7 +46,7 @@ int ieee754sp_issnan(ieee754sp x) } -ieee754sp ieee754sp_xcpt(ieee754sp r, const char *op, ...) +ieee754sp __cold ieee754sp_xcpt(ieee754sp r, const char *op, ...) { struct ieee754xctx ax; @@ -61,7 +62,7 @@ ieee754sp ieee754sp_xcpt(ieee754sp r, const char *op, ...) return ax.rv.sp; } -ieee754sp ieee754sp_nanxcpt(ieee754sp r, const char *op, ...) +ieee754sp __cold ieee754sp_nanxcpt(ieee754sp r, const char *op, ...) { struct ieee754xctx ax; -- cgit v1.2.3-55-g7522