Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
f32_sub.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "softfloat.h"
Include dependency graph for f32_sub.c:

Go to the source code of this file.

Functions

float32_t f32_sub (float32_t a, float32_t b)
 

Function Documentation

◆ f32_sub()

float32_t f32_sub ( float32_t a,
float32_t b )

Definition at line 43 of file f32_sub.c.

44{
45 union ui32_f32 uA;
46 uint_fast32_t uiA;
47 union ui32_f32 uB;
48 uint_fast32_t uiB;
49#if ! defined INLINE_LEVEL || (INLINE_LEVEL < 1)
50 float32_t (*magsFuncPtr)( uint_fast32_t, uint_fast32_t );
51#endif
52
53 uA.f = a;
54 uiA = uA.ui;
55 uB.f = b;
56 uiB = uB.ui;
57#if defined INLINE_LEVEL && (1 <= INLINE_LEVEL)
58 if ( signF32UI( uiA ^ uiB ) ) {
59 return softfloat_addMagsF32( uiA, uiB );
60 } else {
61 return softfloat_subMagsF32( uiA, uiB );
62 }
63#else
64 magsFuncPtr =
66 return (*magsFuncPtr)( uiA, uiB );
67#endif
68
69}
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181
float32_t softfloat_addMagsF32(uint_fast32_t, uint_fast32_t)
#define signF32UI(a)
Definition internals.h:104
float32_t softfloat_subMagsF32(uint_fast32_t, uint_fast32_t)
uint32_t uint_fast32_t
Definition stdint.h:156
Here is the call graph for this function:
Here is the caller graph for this function: