MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fputrap_sse

Function fputrap_sse

freebsd/amd64/amd64/fpu.c:738–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738int
739fputrap_sse(void)
740{
741 u_int mxcsr;
742
743 critical_enter();
744 if (PCPU_GET(fpcurthread) != curthread)
745 mxcsr = curpcb->pcb_save->sv_env.en_mxcsr;
746 else
747 stmxcsr(&mxcsr);
748 critical_exit();
749 return (fpetable[(mxcsr & (~mxcsr >> 7)) & 0x3f]);
750}
751
752static void
753restore_fpu_curthread(struct thread *td)

Callers 1

trapFunction · 0.85

Calls 2

critical_enterFunction · 0.50
critical_exitFunction · 0.50

Tested by

no test coverage detected