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 8186047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:03:53+00:00 2026-06-07T02:03:53+00:00

Must the data be 16-byte aligned so that it can be processed by the

  • 0

Must the data be 16-byte aligned so that it can be processed by the SSE instruction without segmentation fault? The compiler I tried is gcc with option -msse2. I want use _mm_cmpgt_epi32 to compare a large int array. I found that it can not be executed at any location of the array except the position with subscript of the multiples of 4.

  • 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-06-07T02:03:54+00:00Added an answer on June 7, 2026 at 2:03 am

    Yes, when you load and store data to/from SSE registers it needs to be 16 byte aligned, unless you use the misaligned versions of the load/store instructions, e.g. _mm_loadu_si128/_mm_storeu_si128. There is typically a performance penalty for using these misaligned load/store instructions however, so one would normally try to ensure correct data alignment at all times and only use misaligned loads/stores as a last resort.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that must get data from the Sqlite database in order
I want to create a WinForm application that must draw data coming from a
We have some columns with data that must always be in uppercase to ensure
Making an adobe flex ui in which data that is calculated must use proprietary
I have a listener that returns a TcpClient that must read data until the
javax.crypto.IllegalBlockSizeException: Data must not be longer than 53 bytes i know that it is
Say I have a function that receives a byte array: void fcn(byte* data) {
I heard a lot that data should be properly aligned in memory for better
Say I have a collection of data (eg: strings) that must be stored in
(Approximately) how many more bits of data must be transferred over the network during

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.