21.07.2015 Views

THESE de DOCTORAT Lyu ABE Imagerie à Haute Dynamique ...

THESE de DOCTORAT Lyu ABE Imagerie à Haute Dynamique ...

THESE de DOCTORAT Lyu ABE Imagerie à Haute Dynamique ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Annexe B : Programmation en parallèle 229Algorithme sériel : 25 Cycles[B0] SUB 1,B0,B0 ; sub 1 from cntr(B0) if not zeroEXTU .S1 A10,0,24,A0 ; extract P0(A0)CMPGT .L A0,A15,A1 ; A,A,A P0>seuil ? -> a(A1)EXTU .S2 B10,8,24,B3 ; extract P1(B3)CMPGT .L B3,A15,B8 ; B,A,B P1>seuil ? -> b(B8)EXTU .S2 B10,16,24,B4 ; extract P2(B4)CMPGT .L B4,A15,B2 ; B,A,B P2>seuil ? -> c(B2)AND .L A14,A10,A3 ; extract P3(A3)CMPGT .L A3,A15,A2 ; A,A,A P3>seuil ? -> d(A2)OR .L A1,B2,B2 ; a OR c -> cOR .L B8,A2,A2 ; b OR d -> dOR .L A2,B2,A2 ; (a OR c) OR (b OR d) -> d[ !A2] LDW *A8++,A10 ; load A8 content to A10(word0)NOPNOPNOP[ !A2] MV A10,B10 ; copy A10 into B10MV A3,A5 ; copy P3 in Pn for next iteration[ !B0] SET A2,0,1,A2 ; if zero, set A2 to 1[ !A2] ADD .S 4,A13,A13 ; coordA += 1[ !A2] B .S LOOPNOPNOPNOPNOP

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!