aboutsummaryrefslogtreecommitdiff
path: root/softfloat/f64_mulAdd.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-19 21:45:58 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-06-19 21:45:58 -0700
commit1e163c715550e20e239976a22e00869884713e54 (patch)
treedbcf7b10e35421c72758df098057014fef7ffff7 /softfloat/f64_mulAdd.c
parent0edaecc54329048eb91ad6a45338265ef1a4569c (diff)
downloadriscv-pk-1e163c715550e20e239976a22e00869884713e54.zip
riscv-pk-1e163c715550e20e239976a22e00869884713e54.tar.gz
riscv-pk-1e163c715550e20e239976a22e00869884713e54.tar.bz2
fixed build after repo split
Diffstat (limited to 'softfloat/f64_mulAdd.c')
-rwxr-xr-xsoftfloat/f64_mulAdd.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/softfloat/f64_mulAdd.c b/softfloat/f64_mulAdd.c
new file mode 100755
index 0000000..fa1669a
--- /dev/null
+++ b/softfloat/f64_mulAdd.c
@@ -0,0 +1,25 @@
+
+#include <stdint.h>
+#include "platform.h"
+#include "internals.h"
+#include "softfloat.h"
+
+float64_t f64_mulAdd( float64_t a, float64_t b, float64_t c )
+{
+ union ui64_f64 uA;
+ uint_fast64_t uiA;
+ union ui64_f64 uB;
+ uint_fast64_t uiB;
+ union ui64_f64 uC;
+ uint_fast64_t uiC;
+
+ uA.f = a;
+ uiA = uA.ui;
+ uB.f = b;
+ uiB = uB.ui;
+ uC.f = c;
+ uiC = uC.ui;
+ return softfloat_mulAddF64( 0, uiA, uiB, uiC );
+
+}
+