summaryrefslogtreecommitdiffstats
path: root/usr/klibc/arch/i386/libgcc/__negdi2.S
blob: 147ad94eb604a17d4ab7c9748aebe74e188737b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * arch/i386/libgcc/__negdi2.S
 *
 * 64-bit negation
 */

	.text
	.align 4
	.globl __negdi2
	.type __negdi2,@function
__negdi2:
#ifndef _REGPARM
	movl 4(%esp),%eax
	movl 8(%esp),%edx
#endif
	negl %edx
	negl %eax
	sbbl $0,%edx
	ret

	.size __negdi2,.-__negdi2