Skip to content

Commit 81df515

Browse files
committed
softfloat: bf16: change parameter type to match function name
Though we use float16_t for vs2 in vfncvtbf16_f_f_w.h and vfncvtbf16_sat_f_f_w.h, it can pass compilation since they are the same type Signed-off-by: Chih-Min Chao <[email protected]>
1 parent ef7bc5b commit 81df515

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

softfloat/bf16_to_e4m3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4141
#include "specialize.h"
4242
#include "softfloat.h"
4343

44-
e4m3_t bf16_to_e4m3( float16_t a, bool saturationMode )
44+
e4m3_t bf16_to_e4m3( bfloat16_t a, bool saturationMode )
4545
{
4646
return f32_to_e4m3( bf16_to_f32( a ), saturationMode );
4747
}

softfloat/bf16_to_e5m2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4141
#include "specialize.h"
4242
#include "softfloat.h"
4343

44-
e5m2_t bf16_to_e5m2( float16_t a, bool saturationMode )
44+
e5m2_t bf16_to_e5m2( bfloat16_t a, bool saturationMode )
4545
{
4646
return f32_to_e5m2( bf16_to_f32( a ), saturationMode );
4747
}

softfloat/softfloat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ uint_fast8_t bf16_to_ui8( bfloat16_t, uint_fast8_t, bool );
198198
uint_fast32_t bf16_to_ui32( bfloat16_t, uint_fast8_t, bool );
199199
int_fast8_t bf16_to_i8( bfloat16_t, uint_fast8_t, bool );
200200
int_fast32_t bf16_to_i32( bfloat16_t, uint_fast8_t, bool );
201-
e4m3_t bf16_to_e4m3( float16_t, bool );
202-
e5m2_t bf16_to_e5m2( float16_t, bool );
201+
e4m3_t bf16_to_e4m3( bfloat16_t, bool );
202+
e5m2_t bf16_to_e5m2( bfloat16_t, bool );
203203
float32_t bf16_to_f32( bfloat16_t );
204204
float64_t bf16_to_f64( bfloat16_t );
205205
bfloat16_t bf16_add( bfloat16_t, bfloat16_t );

0 commit comments

Comments
 (0)