Skip to content

s_roundPackToF32.c rounding to odd #20

@Kou66666

Description

@Kou66666

Hi,

s_roundPackToF32.c, line 96 implement rounding to odd as following:

96 if ( roundingMode == softfloat_round_odd ) {
97 sig |= 1;

Does this means rod always or the fraction part bit0 to 1'b1?

The correct behavior of rod suppose to be frac round up only:

  1. round > 0.5
  2. if 0.5 & (guard bit == 0)

Kou

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions