vec_round should specify "round to nearest *away*" #75

Closed
opened 3 years ago by ThinkOpenly · 0 comments
ThinkOpenly commented 3 years ago (Migrated from github.com)

Current wording:

Result value: Each element of r contains the value of the corresponding element of a, rounded to the nearest representable floating-point integer, using IEEE round-to-nearest rounding. The current floating-point rounding mode is ignored.

Suggested wording:

Result value: Each element of r contains the value of the corresponding element of a, rounded to the nearest representable floating-point integer, using IEEE round-to-nearest -away rounding. The current floating-point rounding mode is ignored.

(emphasis added)

As IEEE 754 has two "round to nearest" modes ("away from zero" and "to even"), which is used should be specified.

Current wording: > Result value: Each element of **r** contains the value of the corresponding element of **a**, rounded to the nearest representable floating-point integer, using IEEE round-to-nearest rounding. The current floating-point rounding mode is ignored. Suggested wording: > Result value: Each element of **r** contains the value of the corresponding element of **a**, rounded to the nearest representable floating-point integer, using IEEE round-to-nearest **-away** rounding. The current floating-point rounding mode is ignored. _(emphasis added)_ As IEEE 754 has two "round to nearest" modes ("away from zero" and "to even"), which is used should be specified.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: systemsoftware/Programming-Guides#75
Loading…
There is no content yet.