1 .ident "%W% %E% SMI" 2 3/ Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4/ Use is subject to license terms. 5/ 6/ CDDL HEADER START 7/ 8/ The contents of this file are subject to the terms of the 9/ Common Development and Distribution License, Version 1.0 only 10/ (the "License"). You may not use this file except in compliance 11/ with the License. 12/ 13/ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14/ or http://www.opensolaris.org/os/licensing. 15/ See the License for the specific language governing permissions 16/ and limitations under the License. 17/ 18/ When distributing Covered Code, include this CDDL HEADER in each 19/ file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20/ If applicable, add the following below this CDDL HEADER, with the 21/ fields enclosed by brackets "[]" replaced with your own identifying 22/ information: Portions Copyright [yyyy] [name of copyright owner] 23/ 24/ CDDL HEADER END 25/ 26/ 00 - Round to nearest or even 27/ 01 - Round down 28/ 10 - Round up 29/ 11 - Chop 30 .type __xgetRD,@function 31 .text 32 .globl __xgetRD 33 .align 4 34__xgetRD: 35 pushl %ebp 36 movl %esp,%ebp 37 subl $4,%esp 38 fstcw -4(%ebp) 39 movw -4(%ebp),%ax 40 shrw $10,%ax 41 andl $0x3,%eax 42 leave 43 ret 44 .align 4 45 .size __xgetRD,.-__xgetRD 46