17 lines
234 B
C
17 lines
234 B
C
/*
|
|
* linux/kernel/math/error.c
|
|
*
|
|
* (C) 1991 Linus Torvalds
|
|
*/
|
|
|
|
#include <signal.h>
|
|
|
|
#include <linux/sched.h>
|
|
|
|
void math_error(void)
|
|
{
|
|
__asm__("fnclex");
|
|
if (last_task_used_math)
|
|
last_task_used_math->signal |= 1<<(SIGFPE-1);
|
|
}
|