mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue