Mercurial > hg > Game > Cerium
comparison Renderer/Engine/spe/chain_move.cc @ 773:64d9bf02c7d3 draft
add property_chain.h
author | hiroki@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 16 Feb 2010 15:00:50 +0900 |
parents | 06cabc57afcf |
children |
comparison
equal
deleted
inserted
replaced
772:06cabc57afcf | 773:64d9bf02c7d3 |
---|---|
65 property[i+2].xyz[1], | 65 property[i+2].xyz[1], |
66 property[i+3].xyz[1]}; | 66 property[i+3].xyz[1]}; |
67 vector float v_dy __attribute__((aligned(16))) = spu_sub(v_x1, v_x2); | 67 vector float v_dy __attribute__((aligned(16))) = spu_sub(v_x1, v_x2); |
68 | 68 |
69 dx = spu_mule(dx, dx); | 69 dx = spu_mule(dx, dx); |
70 dy = spu_mule(dy, dy); | |
70 vector float v_l __attribute__((aligned(16))); | 71 vector float v_l __attribute__((aligned(16))); |
71 | 72 |
72 #else | 73 #else |
73 float dx = property[i-1].xyz[0] - property[i].xyz[0]; | 74 float dx = property[i-1].xyz[0] - property[i].xyz[0]; |
74 float dy = property[i-1].xyz[1] - property[i].xyz[1]; | 75 float dy = property[i-1].xyz[1] - property[i].xyz[1]; |