Deleted Added
full compact
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/amd64/s_remquol.S 177768 2008-03-30 21:21:53Z das $");
32__FBSDID("$FreeBSD: head/lib/msun/amd64/s_remquol.S 217108 2011-01-07 16:13:12Z kib $");
33
34ENTRY(remquol)
35 fldt 24(%rsp)
36 fldt 8(%rsp)
371: fprem1
38 fstsw %ax
39 btw $10,%ax
40 jc 1b

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

55 sarl $16,%ecx
56 sarl $16,%ecx
57 xorl %ecx,%eax
58 andl $1,%ecx
59 addl %ecx,%eax
60/* Store the quotient and return. */
61 movl %eax,(%rdi)
62 ret
33
34ENTRY(remquol)
35 fldt 24(%rsp)
36 fldt 8(%rsp)
371: fprem1
38 fstsw %ax
39 btw $10,%ax
40 jc 1b

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

55 sarl $16,%ecx
56 sarl $16,%ecx
57 xorl %ecx,%eax
58 andl $1,%ecx
59 addl %ecx,%eax
60/* Store the quotient and return. */
61 movl %eax,(%rdi)
62 ret
63
64 .section .note.GNU-stack,"",%progbits