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/amd64/s_remquof.S 192760 2009-05-25 14:37:10Z attilio $"); | 32__FBSDID("$FreeBSD: head/lib/msun/amd64/s_remquof.S 217108 2011-01-07 16:13:12Z kib $"); |
33 34ENTRY(remquof) 35 movss %xmm0,-4(%rsp) 36 movss %xmm1,-8(%rsp) 37 flds -8(%rsp) 38 flds -4(%rsp) 391: fprem1 40 fstsw %ax --- 18 unchanged lines hidden (view full) --- 59 andl $1,%ecx 60 addl %ecx,%eax 61/* Store the quotient and return. */ 62 movl %eax,(%rdi) 63 fstps -4(%rsp) 64 movss -4(%rsp),%xmm0 65 ret 66END(remquof) | 33 34ENTRY(remquof) 35 movss %xmm0,-4(%rsp) 36 movss %xmm1,-8(%rsp) 37 flds -8(%rsp) 38 flds -4(%rsp) 391: fprem1 40 fstsw %ax --- 18 unchanged lines hidden (view full) --- 59 andl $1,%ecx 60 addl %ecx,%eax 61/* Store the quotient and return. */ 62 movl %eax,(%rdi) 63 fstps -4(%rsp) 64 movss -4(%rsp),%xmm0 65 ret 66END(remquof) |
67 68 .section .note.GNU-stack,"",%progbits |
|