X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Ffma.c;h=31eff28f68bfd8e4db82895f313f3ff36f5b9efc;hb=8c8750c2826684c2420571a8007b9606f72c9040;hp=626e9aa59ff576499ce44b79f003c69eeb4e84eb;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;p=pdclib diff --git a/functions/math/fma.c b/functions/math/fma.c index 626e9aa..31eff28 100644 --- a/functions/math/fma.c +++ b/functions/math/fma.c @@ -5,15 +5,13 @@ // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// ---------------------------------------------------------------------------- -// C++ +double fma( double x, double y, double z ) { /* TODO */ }; -float fma( float x, float y, float z ) { /* TODO */ }; -long double fma( long double x, long double y, long double z ) { /* TODO */ }; +/* Therx code +{ + return (int) ( ( x * y ) + z + 0.5 ); +} +*/ -// ---------------------------------------------------------------------------- -// Standard C - -double fma( double x, double y, double z ) { /* TODO */ }; float fmaf( float x, float y, float z ) { /* TODO */ }; long double fmal( long double x, long double y, long double z ) { /* TODO */ };