]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - arch/h8300/lib/abs.S
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-eoan-kernel.git] / arch / h8300 / lib / abs.S
1 ;;; SPDX-License-Identifier: GPL-2.0
2 ;;; abs.S
3
4 #include <asm/linkage.h>
5
6 #if defined(CONFIG_CPU_H8300H)
7 .h8300h
8 #endif
9 #if defined(CONFIG_CPU_H8S)
10 .h8300s
11 #endif
12 .text
13 .global _abs
14
15 ;;; int abs(int n)
16 _abs:
17 mov.l er0,er0
18 bpl 1f
19 neg.l er0
20 1:
21 rts