Skip to content

Commit

Permalink
update comment for min/max functions in softfloat3e
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Shwartsman committed Nov 1, 2024
1 parent 87eeb9d commit b1ea77b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions bochs/cpu/softfloat3e/f16_minmax.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

/*----------------------------------------------------------------------------
| Compare between two half precision floating point numbers and return the
| smaller of them.
| smaller of them. If the values being compared are both 0.0s (of either sign),
| the value in the second operand is returned.
*----------------------------------------------------------------------------*/

float16 f16_min(float16 a, float16 b, struct softfloat_status_t *status)
Expand All @@ -55,7 +56,8 @@ float16 f16_min(float16 a, float16 b, struct softfloat_status_t *status)

/*----------------------------------------------------------------------------
| Compare between two half precision floating point numbers and return the
| larger of them.
| larger of them. If the values being compared are both 0.0s (of either sign),
| the value in the second operand is returned.
*----------------------------------------------------------------------------*/

float16 f16_max(float16 a, float16 b, struct softfloat_status_t *status)
Expand Down
6 changes: 4 additions & 2 deletions bochs/cpu/softfloat3e/f32_minmax.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

/*----------------------------------------------------------------------------
| Compare between two single precision floating point numbers and return the
| smaller of them.
| smaller of them. If the values being compared are both 0.0s (of either sign),
| the value in the second operand is returned.
*----------------------------------------------------------------------------*/

float32 f32_min(float32 a, float32 b, struct softfloat_status_t *status)
Expand All @@ -55,7 +56,8 @@ float32 f32_min(float32 a, float32 b, struct softfloat_status_t *status)

/*----------------------------------------------------------------------------
| Compare between two single precision floating point numbers and return the
| larger of them.
| larger of them. If the values being compared are both 0.0s (of either sign),
| the value in the second operand is returned.
*----------------------------------------------------------------------------*/

float32 f32_max(float32 a, float32 b, struct softfloat_status_t *status)
Expand Down
6 changes: 4 additions & 2 deletions bochs/cpu/softfloat3e/f64_minmax.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

/*----------------------------------------------------------------------------
| Compare between two double precision floating point numbers and return the
| smaller of them.
| smaller of them. If the values being compared are both 0.0s (of either sign),
| the value in the second operand is returned.
*----------------------------------------------------------------------------*/

float64 f64_min(float64 a, float64 b, struct softfloat_status_t *status)
Expand All @@ -55,7 +56,8 @@ float64 f64_min(float64 a, float64 b, struct softfloat_status_t *status)

/*----------------------------------------------------------------------------
| Compare between two double precision floating point numbers and return the
| larger of them.
| larger of them. If the values being compared are both 0.0s (of either sign),
| the value in the second operand is returned.
*----------------------------------------------------------------------------*/

float64 f64_max(float64 a, float64 b, struct softfloat_status_t *status)
Expand Down

0 comments on commit b1ea77b

Please sign in to comment.