s_remquol.S (177768) | s_remquol.S (217108) |
---|---|
1/*- 2 * Copyright (c) 2005-2008 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-2008 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_remquol.S 177768 2008-03-30 21:21:53Z das $"); | 32__FBSDID("$FreeBSD: head/lib/msun/i387/s_remquol.S 217108 2011-01-07 16:13:12Z kib $"); |
33 34ENTRY(remquol) 35 fldt 16(%esp) 36 fldt 4(%esp) 371: fprem1 38 fstsw %ax 39 sahf 40 jp 1b --- 15 unchanged lines hidden (view full) --- 56 sarl $16,%ecx 57 xorl %ecx,%eax 58 andl $1,%ecx 59 addl %ecx,%eax 60/* Store the quotient and return. */ 61 movl 28(%esp),%ecx 62 movl %eax,(%ecx) 63 ret | 33 34ENTRY(remquol) 35 fldt 16(%esp) 36 fldt 4(%esp) 371: fprem1 38 fstsw %ax 39 sahf 40 jp 1b --- 15 unchanged lines hidden (view full) --- 56 sarl $16,%ecx 57 xorl %ecx,%eax 58 andl $1,%ecx 59 addl %ecx,%eax 60/* Store the quotient and return. */ 61 movl 28(%esp),%ecx 62 movl %eax,(%ecx) 63 ret |
64 65 .section .note.GNU-stack,"",%progbits |
|