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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:44:28+00:00 2026-06-14T09:44:28+00:00

Everything I’ve read about using C/C++ intrinsic types for SIMD capabilities like MMX and

  • 0

Everything I’ve read about using C/C++ intrinsic types for SIMD capabilities like MMX and SSE indicate that you should use those as opaque types and not reference the internals directly.

However, when I look at many examples, they work by taking (explicitly aligned) pointers to raw data and reinterpreting them as pointers to the intrinsic types prior to doing the work. But, by using pointers to intrinsic types, and especially when aliasing other data as those types, are you not violating that rule?

  • 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-14T09:44:29+00:00Added an answer on June 14, 2026 at 9:44 am

    What you appear to have discovered is that most examples suck.

    It’s actually fairly safe to reference the “internals” of a SSE type (as long as it compiles), and in practice you can just alias them in memory to a “normal” datatype in memory, and a lot of people do it because it makes the code a bit more convenient to write and to use.

    But it pretty much ruins the point of using SIMD. It prevents a lot of optimizations, and it means that the compiler has to constantly store/load the SIMD datatypes, rather than just keeping them in a SIMD register.

    You can do this, but you should not. And as you’ve discovered, many people read “should” as “feel free to do this”.

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

Sidebar

Related Questions

Everything that I read about sockets in .NET says that the asynchronous pattern gives
Everything I read about cookies says that setting the expiry time of a cookie
Everything I am reading about rails 3 and AJAX says that we should have
Everything I read about Hibernate states that you must roll back a transaction and
Everything i read tells me this should work page 1 is <?php $state =
Everything I know about .Net programming tells me that the behavior I see here
Everything I'm told says that WCF should be at least as fast as remoting.
Everything i've read about objective-c memory management makes it sound incredible easy. To paraphrase
Everything I have read says that when making a managed stored procedure, to right
Everything I read about better PHP coding practices keeps saying don't use require_once because

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.