Deleted Added
full compact
s_remquo.S (144091) s_remquo.S (192760)
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_remquo.S 144091 2005-03-25 04:40:44Z das $");
32__FBSDID("$FreeBSD: head/lib/msun/amd64/s_remquo.S 192760 2009-05-25 14:37:10Z attilio $");
33
34ENTRY(remquo)
35 movsd %xmm0,-8(%rsp)
36 movsd %xmm1,-16(%rsp)
37 fldl -16(%rsp)
38 fldl -8(%rsp)
391: fprem1
40 fstsw %ax

--- 17 unchanged lines hidden (view full) ---

58 xorl %ecx,%eax
59 andl $1,%ecx
60 addl %ecx,%eax
61/* Store the quotient and return. */
62 movl %eax,(%rdi)
63 fstpl -8(%rsp)
64 movsd -8(%rsp),%xmm0
65 ret
33
34ENTRY(remquo)
35 movsd %xmm0,-8(%rsp)
36 movsd %xmm1,-16(%rsp)
37 fldl -16(%rsp)
38 fldl -8(%rsp)
391: fprem1
40 fstsw %ax

--- 17 unchanged lines hidden (view full) ---

58 xorl %ecx,%eax
59 andl $1,%ecx
60 addl %ecx,%eax
61/* Store the quotient and return. */
62 movl %eax,(%rdi)
63 fstpl -8(%rsp)
64 movsd -8(%rsp),%xmm0
65 ret
66END(remquo)