intel / intel/rohd-hcl

FloatingPointMultiplier to narrower FP type

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

Description

### Motivation

Currently, the fp multiplier can expand to a wider FP type in both exponent and mantissa.
It throws if we try to have it output a narrower type.

### Desired solution

Allow for conversion to both smaller exponents and/or mantissas by
1) Adding a rounding capability, which can result in a bump in the exponent (and a check for overflow)
2) computing to a narrower exponent may require checking for overflow
3) potentially right-shifting the mantissa in the underflow case

### 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.