Cross Reference: fpsetmask.S
xref: /src/lib/libc/arch/i386/gen/fpsetmask.S
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/lib/libc/arch/i386/gen/
fpsetmask.S revision 1.3
11.3Sperry/*	$NetBSD: fpsetmask.S,v 1.3 1998/01/09 03:45:05 perry Exp $	*/
21.3Sperry
31.1Smycroft/*
41.1Smycroft * Written by Charles M. Hannum, Apr 9, 1995
51.1Smycroft * Public domain.
61.1Smycroft */
71.1Smycroft
81.1Smycroft#include <machine/asm.h>
91.1Smycroft
101.1SmycroftENTRY(fpsetmask)
111.1Smycroft	subl $4,%esp
121.1Smycroft
131.1Smycroft	fnstcw (%esp)
141.1Smycroft	movl (%esp),%eax
151.1Smycroft	movl %eax,%edx
161.1Smycroft
171.1Smycroft	notl %eax
181.1Smycroft	andl $63,%eax
191.1Smycroft
201.2Smycroft	addl %eax,%edx
211.1Smycroft	movl 8(%esp),%ecx
221.1Smycroft	andl $63,%ecx
231.1Smycroft	subl %ecx,%edx
241.1Smycroft	movl %edx,(%esp)
251.1Smycroft	fldcw (%esp)
261.1Smycroft
271.1Smycroft	addl $4,%esp
281.1Smycroft	ret
29

Indexes created Mon Nov 10 17:20:41 GMT 2025