https://github.com/torvalds/linux
Raw File
Tip revision: c32511e2718618f0b53479eb36e07439aa363a74 authored by Linus Torvalds on 13 July 2005, 04:46:46 UTC
Linux 2.6.13-rc3
Tip revision: c32511e
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