1 /* $NetBSD: flt_rounds.S,v 1.10 2014/05/23 02:34:19 uebayasi Exp $ */
3 #include <machine/asm.h>
7 * 01 1 round to nearest
8 * 10 2 round to positive infinity
9 * 11 3 round to negative infinity
18 movl $0x2d, %eax /* 0x2d = 00.10.11.01 */
19 sarl %cl, %eax /* 0,1,2,3 -> 1,3,2,0 */