mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Implemented lrintf(), lrint(), lroundf(), lround(), nearbyintf(),
nearbyint(), remquof(), remquo(), roundf(), round(), tgammaf(), tgamma(), truncf(), trunc(). Sort of implemented fmaf() and fma(), which really ought to be done in "SIMD" fashion. This completes the "real" floating point math library (ignoring for a moment that the floating point environment code is still not implemented). git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15035 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: math_fma.c,v 1.1 2005-05-29 11:19:01 obarthel Exp $
|
||||
* $Id: math_fma.c,v 1.2 2005-10-09 10:38:55 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -44,8 +44,9 @@
|
||||
double
|
||||
fma(double x,double y,double z)
|
||||
{
|
||||
/* ZZZ unimplemented */
|
||||
return(0);
|
||||
/* ZZZ this should be a *fused* multiply & add, and
|
||||
not a sequential operation as declared below! */
|
||||
return((x * y) + z);
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user