fpgetsticky.S revision 1.6
11.6Sthorpej/*	$NetBSD: fpgetsticky.S,v 1.6 2002/01/13 21:45:43 thorpej Exp $	*/
21.5Sperry
31.1Sjtc/*
41.1Sjtc * Written by J.T. Conklin, Apr 4, 1995
51.1Sjtc * Public domain.
61.1Sjtc */
71.1Sjtc
81.1Sjtc#include <machine/asm.h>
91.1Sjtc
101.6Sthorpej#ifdef WEAK_ALIAS
111.6SthorpejWEAK_ALIAS(fpgetsticky, _fpgetsticky)
121.6SthorpejENTRY(_fpgetsticky)
131.6Sthorpej#else
141.2SjtcENTRY(fpgetsticky)
151.6Sthorpej#endif
161.1Sjtc	subl $4,%esp
171.1Sjtc	fnstsw (%esp)
181.3Smycroft	movl (%esp),%eax
191.1Sjtc	andl $63,%eax
201.1Sjtc	addl $4,%esp
211.1Sjtc	ret
22