repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git]
/
lib
/
libc
/
arch
/
i386
/
gen
/
fpsetmask.S
blob
912a48e35adaa6a71ba93a51d2140590016f2b4a
1
/* $NetBSD: fpsetmask.S,v 1.3 1998/01/09 03:45:05 perry Exp $ */
2
3
/*
4
* Written by Charles M. Hannum, Apr 9, 1995
5
* Public domain.
6
*/
7
8
#include <machine/asm.h>
9
10
#ifdef WEAK_ALIAS
11
WEAK_ALIAS(fpsetmask, _fpsetmask)
12
ENTRY(_fpsetmask)
13
#else
14
ENTRY(fpsetmask)
15
#endif
16
subl $4,%esp
17
18
fnstcw (%esp)
19
movl (%esp),%eax
20
movl %eax,%edx
21
22
notl %eax
23
andl $63,%eax
24
25
addl %eax,%edx
26
movl 8(%esp),%ecx
27
andl $63,%ecx
28
subl %ecx,%edx
29
movl %edx,(%esp)
30
fldcw (%esp)
31
32
addl $4,%esp
33
ret