blob: 0d70d4806d70b53358d0e4038e47484027b2d3c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* Written by J.T. Conklin, Apr 4, 1995
* Public domain.
*/
#include <machine/asm.h>
#if defined(LIBC_SCCS)
.text
.asciz "$OpenBSD: fpgetround.S,v 1.2 1996/08/19 08:12:23 tholo Exp $"
#endif
ENTRY(fpgetround)
subl $4,%esp
fnstcw (%esp)
movl (%esp),%eax
rorl $10,%eax
andl $3,%eax
addl $4,%esp
ret
|