473,804 Members | 3,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2217
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.x 86?

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.x 86?

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

--
Thomashttp://www.netmeister. org/news/learn2quote.htm l
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
2593
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, but without linebreaks. The text would be quite large and set to a percentage, eg. 200%, so there's no way of knowing the exact pixel height. If all items were simply placed after each other, the arrow would naturally
30
2385
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 influence which integral type you choose:
3
5004
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: struct node {
7
7204
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, sizeof(struct something), it will not give us the correct number (i.e. the size of the structure
1
1365
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 there is a way to set the Alignement of the controls & Test on the form from right to left ? so anything added is aligned to right by default i used this.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
2
2277
by: tobiasoed | last post by:
Hello, I want to do something similar to this: #include <stdlib.h> struct coord { double val; double err; };
4
1569
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 it like in notepad... (if man types 6 letters and return and 6 more letters. the last i of the second line is not aligned... why ? a b c d e f => 6 letters g h i j i i => 6 letters
10
3827
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 application that the code be speed optimized ) I use reinterpret_cast to alias a block of chars read in from disc as a block of integer "words". My existing code (see simplified code below) appears to work well enough on the platforms available to me,...
0
1033
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 decided to look into memory alignment. How can I know which part of my program is automatically aligned by the compiler and which part I need to align manually. Q2. On an MSDN website it read something like "if you are using SSE instructions then you...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.