Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
VCVT
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
3 replies
Subscribers
126 subscribers
Views
2012 views
Users
0 members are here
Related
VCVT
Offline
pachu pachu
over 7 years ago
Note: This was originally posted on 7th July 2009 at http://forums.arm.com
Hello all,
We are facing an issue with conversion from float to integer
the following parallel instruction seems to be working...
vcvt.f32.s32 q0,q0 @ converting rect[0] tr.x,y tr.width,height to float
vcvt.f32.s32 q1,q1 @ converting rect[1] tr.x,y tr.width,height to float
the same thing when tried the other way, ie float to integer seems to be going wrong. Doesnt seem to be rounding to the nearest integer, rather truncating the decimal part and returning the int.
vcvt.s32.f32 q0,q0 @ converting rect[0] tr.weight,a,b,cto int
vcvt.s32.f32 q1,q1 @ converting rect[1] tr.weight,a,b,cto int
but if we put each single precesion instruction it seems to be working
vcvt.s32.f32 s0,s0
vcvt.s32.f32 s1,s1
vcvt.s32.f32 s2,s2
vcvt.s32.f32 s3,s3
kindly suggest if we are doing anything wrong.
thanks and regards
pachu
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
Can't get a 30-day Gold Edition evalution license
+1
707
views
7
replies
Latest
1 month ago
by
KokoBongo
Answered
Failure to get an evaluation license with error Unable to execute API call /api/v1/connect
0
7076
views
5
replies
Latest
1 month ago
by
Ronan Synnott
Answered
error encountered when try to connect FVP
0
4343
views
18
replies
Latest
1 month ago
by
MattB
Suggested Answer
ARM DStudio can't detect Juno CPU core via DStream
0
347
views
2
replies
Latest
1 month ago
by
QiangHuang
Answered
ARM Development Studio IDE 2020.1 and DE10-NANO --> Linker and debugging issue
+1
1031
views
3
replies
Latest
1 month ago
by
Ronan Synnott
<
>
View all questions in Arm Development Studio forum