Mercurial > hg > Game > Cerium
comparison TaskManager/Test/simple_render/spe/CreatePolygonPack.cpp @ 321:f22280772f20 draft
merge 317
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 10 Jun 2009 15:23:25 +0900 |
parents | a5ae1fbbafd6 |
children |
comparison
equal
deleted
inserted
replaced
320:673a9fce3d59 | 321:f22280772f20 |
---|---|
87 abc[0] = xyz[0]; | 87 abc[0] = xyz[0]; |
88 abc[1] = xyz[1]; | 88 abc[1] = xyz[1]; |
89 abc[2] = xyz[2]; | 89 abc[2] = xyz[2]; |
90 abc[3] = xyz[3]; | 90 abc[3] = xyz[3]; |
91 | 91 |
92 // SIMD 使えるよね | 92 // SIMD 篏帥 |
93 for (int i=0; i<4; i++) | 93 for (int i=0; i<4; i++) |
94 { | 94 { |
95 xyz[i] = abc[0]*matrix[i] + abc[1]*matrix[i+4] | 95 xyz[i] = abc[0]*matrix[i] + abc[1]*matrix[i+4] |
96 + abc[2]*matrix[i+8] + abc[3]*matrix[i+12]; | 96 + abc[2]*matrix[i+8] + abc[3]*matrix[i+12]; |
97 } | 97 } |