aboutsummaryrefslogtreecommitdiff
path: root/source/s_addMagsF16.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/s_addMagsF16.c')
-rw-r--r--source/s_addMagsF16.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/s_addMagsF16.c b/source/s_addMagsF16.c
index 43ae655..05644ac 100644
--- a/source/s_addMagsF16.c
+++ b/source/s_addMagsF16.c
@@ -2,10 +2,10 @@
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
-Package, Release 3b, by John R. Hauser.
+Package, Release 3c, by John R. Hauser.
-Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
-California. All rights reserved.
+Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the
+University of California. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@@ -163,6 +163,11 @@ float16_t softfloat_addMagsF16( uint_fast16_t uiA, uint_fast16_t uiB )
softfloat_flag_overflow | softfloat_flag_inexact );
}
}
+#ifdef SOFTFLOAT_ROUND_ODD
+ else if ( roundingMode == softfloat_round_odd ) {
+ uiZ |= 1;
+ }
+#endif
}
softfloat_exceptionFlags |= softfloat_flag_inexact;
goto uiZ;