473,372 Members | 860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

icc, gcc sse alignement

Hi,
I try to learn mmx and sse, to begin with i try to understand some
examples i found on the net.
Basically all __m128 vectors are 16 bit aligned, but one some
examples saw them 64 aligned. Is there any specific reason ?
I use icc most of the time, but some time I try to use gcc as well,
but I didn't get same result and even whorse
i got segfault sometimes, is this can be related to alignement
problem ?

Any ideas ?

Jul 3 '07 #1
2 2197
easter bunny wrote:
Hi,
I try to learn mmx and sse, to begin with i try to understand some
examples i found on the net.
Basically all __m128 vectors are 16 bit aligned, but one some
examples saw them 64 aligned. Is there any specific reason ?
[...]

Are you looking for comp.lang.asm.x86?

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
Thomas
http://www.netmeister.org/news/learn2quote.html
Jul 3 '07 #2
On 3 juil, 23:25, "Thomas J. Gritzan" <Phygon_ANTIS...@gmx.dewrote:
easter bunny wrote:
Hi,
I try to learn mmx and sse, to begin with i try to understand some
examples i found on the net.
Basically all __m128 vectors are 16 bit aligned, but one some
examples saw them 64 aligned. Is there any specific reason ?

[...]

Are you looking for comp.lang.asm.x86?

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

--
Thomashttp://www.netmeister.org/news/learn2quote.html
Actually not because this a common issue with c/c++ and not really x86
asm.
I don't want to use asm code, just sse instrincs in my c++ code.

But anyway i will post in an other group if this is more appropriate.

Thanks for your answers
Jul 4 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: michael | last post by:
I have a group of links prefixed with the arrow as follows: »link1 »link2 »link3 I would like the arrows to be vertically aligned middle of the text, like as if they were bullets of list item,...
30
by: JKop | last post by:
When you want to store an integer in C++, you use an integral type, eg. int main() { unsigned char amount_legs_dog = 4; } In writing portable C++ code, there should be only two factors that...
3
by: Arto Huusko | last post by:
Hello, I'm wondering about the portability and correctness of the following scenario. I have a generic doubly linked list structure, and it contains generic nodes that look like this: ...
7
by: Zero | last post by:
If we have a structure like: struct something{ int *a; int b; }; We allocate mempry for a using malloc or calloc. The question is when we want to know the size of the structure,...
1
by: tota | last post by:
i'm using a TreaView & i need to align the nodes of the trea to the right ( for Arabic ) i used this.treeView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes; but not change , anyHelp ? is...
2
by: tobiasoed | last post by:
Hello, I want to do something similar to this: #include <stdlib.h> struct coord { double val; double err; };
4
by: Pascal | last post by:
bonjour does somebody know how to keep the alignement of letters like in the notepad of windows ? I notice that's different between notepad and a richtextbox.... don't know why and how to keep...
10
by: Lionel B | last post by:
Greetings, I have some code that is to read unformatted data from disc and interpret it as blocks of unsigned integers. In an attempt to achieve efficiency (it is pretty essential for my...
0
by: vanillasnake21 | last post by:
Hi, I'm new here but I did search this website (and others) for similar threads but found none, so I suppose its safe to post ) Q1. I'm trying to improve my little game engine's speed, so I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.