Skip to content
Commit d6a04617 authored by Jerry-Ge's avatar Jerry-Ge
Browse files

Fix Cast Float to Int overflows



- For Casting from Float to Integers, if the input float is greater
than INT_MAX, an overflow will happen when calling rint which causes the
clipplings to be ineffectives
- Moved all the range checks and clippings before rint to avoid this
  issue

Signed-off-by: Jerry-Ge's avatarJerry Ge <jerry.ge@arm.com>
Change-Id: Ic189d59685b6d36464e3ef26766665148a660a14
parent 44827be1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment