root/arch/h8300/lib/abs.S

/* [<][>][^][v][top][bottom][index][help] */
   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

/* [<][>][^][v][top][bottom][index][help] */