diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 15:19:34 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-12-27 15:20:08 +0000 |
commit | 72b2e72dc0f0bcc64f3a91f1e1d5986c186b7880 (patch) | |
tree | f9e635b447789995362b8aca162ad6d855bb28c2 /sysdeps/aarch64/fpu/s_fmin.c | |
parent | 2838aa1289bec5055c33d2c00bfe6e3ed3d52e0f (diff) | |
parent | 9f9bd6ac848e9acee2c1072cdb14955c1abb8725 (diff) |
Merge commit 'refs/top-bases/t/UTIME' into t/UTIME
Diffstat (limited to 'sysdeps/aarch64/fpu/s_fmin.c')
-rw-r--r-- | sysdeps/aarch64/fpu/s_fmin.c | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/sysdeps/aarch64/fpu/s_fmin.c b/sysdeps/aarch64/fpu/s_fmin.c index 695abafb9b..a42b565498 100644 --- a/sysdeps/aarch64/fpu/s_fmin.c +++ b/sysdeps/aarch64/fpu/s_fmin.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996-2016 Free Software Foundation, Inc. +/* Copyright (C) 1996-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -17,33 +17,12 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <libm-alias-double.h> -#ifndef FUNC -# define FUNC fmin -#endif - -#ifndef INSN -# define INSN "fminnm" -#endif - -#ifndef TYPE -# define TYPE double -# define REGS "d" -#else -# ifndef REGS -# error REGS not defined -# endif -#endif - -#define __CONCATX(a,b) __CONCAT(a,b) - -TYPE -__CONCATX(__,FUNC) (TYPE x, TYPE y) +double +__fmin (double x, double y) { - TYPE result; - asm ( INSN "\t%" REGS "0, %" REGS "1, %" REGS "2" - : "=w" (result) : "w" (x), "w" (y) ); - return result; + return __builtin_fmin (x, y); } -weak_alias (__CONCATX(__,FUNC), FUNC) +libm_alias_double (__fmin, fmin) |