intel / intel/rohd-hcl

Add all rounding modes

Open
#191 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
115
Forks
39
Avg merge
1d 13h
Merged PRs (30d)
1

Description

### Motivation

We only support truncation and rounding-nearest-even in our logic and value side of floating-point.
We have enumerated the different rounding modes but not implemented them. If we have more components like RoundRNE and we factor out the value-side equivalents, we will have a full bevy of rounders available for our FP components.

We need to refactor our components to also use these rounders, which requires setting up the mantissas for the rounders to perform.

### Desired solution

Create value-side rounders and refactor the ofDouble routine to use them.
Create logic-side rounders and refactor the adders and multipliers and converters to use them.
Write tests that, at the very least, compare the value side and logic side implementations using exhaustive tests.

### Alternatives considered

_No response_

### Additional details

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.