LoongArch: Use __builtin_{fmax,fmaxf,fmin,fminf} with GCC >= 13
commit241603123c2a1beb7e599bd012c542479e216473
authorXi Ruoyao <xry111@xry111.site>
Sat, 20 Aug 2022 08:43:44 +0000 (20 16:43 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Tue, 30 Aug 2022 03:59:15 +0000 (30 11:59 +0800)
tree6939429d569d74a672a674599053549147df4ef6
parentfa9e095bbe9b624022ff77551e5998100bdc4b29
LoongArch: Use __builtin_{fmax,fmaxf,fmin,fminf} with GCC >= 13

GCC 13 compiles these built-ins to {fmax,fmin}.{s/d} instruction, use
them instead of the generic implementation.

Link: https://gcc.gnu.org/r13-2085
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
sysdeps/loongarch/fpu/math-use-builtins-fmax.h [new file with mode: 0644]
sysdeps/loongarch/fpu/math-use-builtins-fmin.h [new file with mode: 0644]