blob: aff3d3f5e2d19daca552bc92f58ad5e797e37429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// See LICENSE.SoftFloat for license details.
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "softfloat.h"
float32_t f32_mulAdd( float32_t a, float32_t b, float32_t c )
{
union ui32_f32 uA;
uint_fast32_t uiA;
union ui32_f32 uB;
uint_fast32_t uiB;
union ui32_f32 uC;
uint_fast32_t uiC;
uA.f = a;
uiA = uA.ui;
uB.f = b;
uiB = uB.ui;
uC.f = c;
uiC = uC.ui;
return softfloat_mulAddF32( 0, uiA, uiB, uiC );
}
|