HyperThreadingã¨ãããSMTã¯æé©åãããããã°ã©ã ã ã¨å
¨ãå¹æãç¡ãã¨ãã説ãããããããã§ãªããã¨ãããã ãã£ããã¯Atomã®movdquãé
ãã¦æ³£ããããã¨ãããããªã®ã ã£ãã Intelã®æé©åããã¥ã¢ã«ãè¦ãã¨ãmovdquã¯ã¬ã¤ãã³ã·3ã®ã¹ã«ã¼ããã2ã¨ãæ¸ãã¦ããã ããå®æ¸¬ããã¨å
¨ãä¿¡ããããªããAgnerããã®instruction tableã®ã¬ã¤ãã³ã·6ãã¹ã«ã¼ããã6ã®æ¹ãæ£ããã¨æãã(ã¹ã«ã¼ãããã¯éæ°è¡¨ç¤ºã§ã) ã¹ã«ã¼ããã6ã¨ããã®ãã©ã®ãããé
·ããã¨ããã¨ã void vecadd(int *a,int *b,int *c,int n) { int i; for (i=0; i<n; i++) { a[i] = b[i]+c[i]; } } ããããã®ã ã¨å
¨ç¶éããªãããããã«é
·ãã ãã®ããã°ã©ã ã¯å½ä»¤å㯠load,load,add,st
{{#tags}}- {{label}}
{{/tags}}