mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
f80cc08d78
commit
cae55066cb
7 changed files with 23 additions and 16 deletions
|
@ -23,6 +23,7 @@
|
|||
* ########################################################################
|
||||
*/
|
||||
|
||||
#include <linux/compiler.h>
|
||||
|
||||
#include "ieee754dp.h"
|
||||
|
||||
|
@ -45,7 +46,7 @@ int ieee754dp_issnan(ieee754dp x)
|
|||
}
|
||||
|
||||
|
||||
ieee754dp ieee754dp_xcpt(ieee754dp r, const char *op, ...)
|
||||
ieee754dp __cold ieee754dp_xcpt(ieee754dp r, const char *op, ...)
|
||||
{
|
||||
struct ieee754xctx ax;
|
||||
if (!TSTX())
|
||||
|
@ -60,7 +61,7 @@ ieee754dp ieee754dp_xcpt(ieee754dp r, const char *op, ...)
|
|||
return ax.rv.dp;
|
||||
}
|
||||
|
||||
ieee754dp ieee754dp_nanxcpt(ieee754dp r, const char *op, ...)
|
||||
ieee754dp __cold ieee754dp_nanxcpt(ieee754dp r, const char *op, ...)
|
||||
{
|
||||
struct ieee754xctx ax;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue