repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove building with NOCRYPTO option
[minix.git]
/
lib
/
libc
/
arch
/
i386
/
gen
/
fpgetround.S
blob
c934fd31ac0ec9151f188ec618f2e7a91e409718
1
/* $NetBSD: fpgetround.S,v 1.7 2014/05/23 02:34:19 uebayasi Exp $ */
2
3
/*
4
* Written by J.T. Conklin, Apr 4, 1995
5
* Public domain.
6
*/
7
8
#include <machine/asm.h>
9
10
/*
11
* XXX load only x87 state.
12
*/
13
14
#ifdef WEAK_ALIAS
15
WEAK_ALIAS(fpgetround, _fpgetround)
16
ENTRY(_fpgetround)
17
#else
18
ENTRY(fpgetround)
19
#endif
20
fnstcw -4(%esp)
21
movl -4(%esp), %eax
22
andl $0x00000c00, %eax
23
ret
24
#ifdef WEAK_ALIAS
25
END(_fpgetround)
26
#else
27
END(fpgetround)
28
#endif