swh:1:snp:77163734605b0ec556b01d897b7bb4a7e30d46b6
Raw File
Tip revision: 67a3e12b05e055c0415c556a315a3d3eb637e29e authored by Linus Torvalds on 30 May 2010, 20:21:02 UTC
Linux 2.6.35-rc1
Tip revision: 67a3e12
abs.S
;;; abs.S

#include <asm/linkage.h>

#if defined(__H8300H__) 
	.h8300h
#endif
#if defined(__H8300S__) 
	.h8300s
#endif
	.text
.global SYMBOL_NAME(abs)

;;; int abs(int n)
SYMBOL_NAME_LABEL(abs)
	mov.l	er0,er0
	bpl	1f
	neg.l	er0
1:
	rts
	
back to top