Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7616897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:00:15+00:00 2026-05-31T03:00:15+00:00

I want to do the following: I have 8 values (8 x 1Byte) in

  • 0

I want to do the following:
I have 8 values (8 x 1Byte) in a Neon D-Register (=64Bit). Now I need to shift every value 3 to the left, but I dont want to lose any Bits.
Afterwards I need to add to every value in the vector the same 32Bit value.

As I understood it i can use the VQSHL instruction to put the result in 2 D-Registers if it overflows? How do I know if an overflow occured and guarantee/force that all of my data are in the new registers?

Also could you help me with some Code for the shift and Add part?

Example Code:

out0 = CONSTANT_32BIT + ( input0 << 3)

out1 = CONSTANT_32BIT + ( input1 << 3)

out_n = CONSTANT_32BIT + ( input_n << 3)

So in theory i could do 8 or 16 of these instructions in parallel using Neon registers?

Target is an ARM Cortex-A9 if this is important.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:00:17+00:00Added an answer on May 31, 2026 at 3:00 am

    You could do something like this (untested code, but should give you some idea of how to do it):

    //Assumes signed ints
    //d0: 8 input bytes
    //q3: contains four copies of the 32-bit constant
    //Perform shift and extend to 16-bit elements
    vshll.s8 q0, d0, #3
    //Extend 16-bit elements to 32-bit elements and add the 32-bit constants
    vaddw.s16 q1, q3, d0
    vaddw.s16 q2, q3, d1
    //q1 now contains first four values, q2 the last four
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code below which works, but I want to insert values
I have the following: PMRCutoffDate.Value = ReportCalc.Cutoff_Date.ToString(MM/dd/yyyy); PMRDate.Value = DateTime.Now.ToString(MM/dd/yyyy); i want dates to
I have a list of values: a = [1,3,4,5,2] I now want the following
I want to validate a textbox have numeric values using the following code, but
I have the following values that I want to place into a mysql db
I have the following table: I want to insert values from the MySQL workbench.
I have the following code, which I want to load values on a selection
I have following xml and I want to fetch the value of node which
I have following values: client-random bytes server-random bytes pre-master secret I don't want to
I have the following values from a database call that I want to apply

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.