11.5Suebayasi/* $NetBSD: fpgetmask.S,v 1.5 2014/05/23 02:34:19 uebayasi Exp $ */ 21.3Sperry 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.4Sthorpej#ifdef WEAK_ALIAS 111.4SthorpejWEAK_ALIAS(fpgetmask, _fpgetmask) 121.4SthorpejENTRY(_fpgetmask) 131.4Sthorpej#else 141.1SjtcENTRY(fpgetmask) 151.4Sthorpej#endif 161.1Sjtc subl $4,%esp 171.1Sjtc fnstcw (%esp) 181.2Smycroft movl (%esp),%eax 191.1Sjtc notl %eax 201.1Sjtc andl $63,%eax 211.1Sjtc addl $4,%esp 221.1Sjtc ret 231.5Suebayasi#ifdef WEAK_ALIAS 241.5SuebayasiEND(_fpgetmask) 251.5Suebayasi#else 261.5SuebayasiEND(fpgetmask) 271.5Suebayasi#endif 28