1/* $NetBSD: fpgetsticky.S,v 1.6 2002/01/13 21:45:43 thorpej Exp $ */ 2 3/* 4 * Written by J.T. Conklin, Apr 4, 1995 5 * Public domain. 6 */ 7 8#include <machine/asm.h> 9 10#ifdef WEAK_ALIAS 11WEAK_ALIAS(fpgetsticky, _fpgetsticky) 12ENTRY(_fpgetsticky) 13#else 14ENTRY(fpgetsticky) 15#endif 16 subl $4,%esp 17 fnstsw (%esp) 18 movl (%esp),%eax 19 andl $63,%eax 20 addl $4,%esp 21 ret 22