1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Add support for x86-64 fma instruction.

Use it to implement fma and fmaf, if possible.
This commit is contained in:
Ulrich Drepper
2009-07-29 15:26:06 -07:00
parent 9a1d2d4555
commit 78c4ef475d
6 changed files with 110 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* Compute x * y + z as ternary operation.
Copyright (C) 1997 Free Software Foundation, Inc.
Copyright (C) 1997, 2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@ -25,4 +25,6 @@ __fmaf (float x, float y, float z)
{
return (x * y) + z;
}
#ifndef __fmaf
weak_alias (__fmaf, fmaf)
#endif