void myCfunction(...){ // Need only the structure so that it can be called normally from other C functions
// your setup..
asm volatile(
// just some lines of a routine as an example
"lsl %8,%8,#2 \n\t"
"vld4.u8 {d0,d1,d2,d3},[%0],%8 \n\t" // Llegim dades del TXT (BGRA)
"vld4.u8 {d6,d7,d8,d9},[%1],%8 \n\t" // Llegim dades del PIC (BGRA)
// PIC --> necessitem un vector amb la Y: Y sera 66*R+129*G+25*B (expandim)
"vmull.u8 q10,d6,d10 \n\t" // factor B --> Y = 25*B
"vmlal.u8 q10,d7,d11 \n\t" // factor G --> Y = Y + 129*G
"vmlal.u8 q10,d8,d12 \n\t" // factor R --> Y = Y + 66*R
// .....
)
}