s_remquof.S (192760) | s_remquof.S (217108) |
---|---|
1/*- 2 * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * Based on public-domain remainder routine by J.T. Conklin <jtc@NetBSD.org>. 29 */ 30 31#include <machine/asm.h> | 1/*- 2 * Copyright (c) 2005 David Schultz <das@FreeBSD.ORG> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * Based on public-domain remainder routine by J.T. Conklin <jtc@NetBSD.org>. 29 */ 30 31#include <machine/asm.h> |
32__FBSDID("$FreeBSD: head/lib/msun/i387/s_remquof.S 192760 2009-05-25 14:37:10Z attilio $"); | 32__FBSDID("$FreeBSD: head/lib/msun/i387/s_remquof.S 217108 2011-01-07 16:13:12Z kib $"); |
33 34ENTRY(remquof) 35 flds 8(%esp) 36 flds 4(%esp) 371: fprem1 38 fstsw %ax 39 sahf 40 jp 1b --- 15 unchanged lines hidden (view full) --- 56 xorl %ecx,%eax 57 andl $1,%ecx 58 addl %ecx,%eax 59/* Store the quotient and return. */ 60 movl 12(%esp),%ecx 61 movl %eax,(%ecx) 62 ret 63END(remquof) | 33 34ENTRY(remquof) 35 flds 8(%esp) 36 flds 4(%esp) 371: fprem1 38 fstsw %ax 39 sahf 40 jp 1b --- 15 unchanged lines hidden (view full) --- 56 xorl %ecx,%eax 57 andl $1,%ecx 58 addl %ecx,%eax 59/* Store the quotient and return. */ 60 movl 12(%esp),%ecx 61 movl %eax,(%ecx) 62 ret 63END(remquof) |
64 65 .section .note.GNU-stack,"",%progbits |
|