Skip to content

Fix normalize function for ac_int(s) with a width larger than 31 bits#19

Open
jmartinl wants to merge 3 commits intohlslibs:masterfrom
jmartinl:master
Open

Fix normalize function for ac_int(s) with a width larger than 31 bits#19
jmartinl wants to merge 3 commits intohlslibs:masterfrom
jmartinl:master

Conversation

@jmartinl
Copy link

No description provided.

Changes in 4.6.1 (see pdfdocs/ac_types_relnotes.pdf for details)
31 bits:
* Without this change, ac_int<32, true> values with an exp<=0
were not properly normalized because min_exp would be AC_VAL_MIN
and max_shift (exp - min_exp - reserved_min_exp) could overflow.
* Reserving WE+2 bits for max_shift ensures no overflow even for
the corner case when exp == AC_VAL_MIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments