search for: vec_doubl

Displaying 3 results from an estimated 3 matches for "vec_doubl".

Did you mean: vec_double
2008 Jul 29
2
[LLVMdev] Vector types as function arguments and interfacing with C
...add(<2 x double> %a, <2 x double> %b) nounwind { %c = add <2 x double> %a, %b ret <2 x double> %c } and then call it from C code. What is the appropriate translation of the <2 x double> vector type into C? I've tried packed structs and "typedef double vec_double __attribute__ ((__vector_size__ (16)))" but in both cases, it seems that GCC passes these in as pointers rather than in registers. Brendan Younger
2008 Jul 29
0
[LLVMdev] Vector types as function arguments and interfacing with C
...double> %b) nounwind { > %c = add <2 x double> %a, %b > ret <2 x double> %c > } > > and then call it from C code. What is the appropriate translation of > the <2 x double> vector type into C? I've tried packed structs and > "typedef double vec_double __attribute__ ((__vector_size__ (16)))" but > in both cases, it seems that GCC passes these in as pointers rather > than in registers. try reading about the gcc vector extensions in the "C Extensions" chapter of the gcc docs. Ciao, Duncan.
2008 Jul 29
1
[LLVMdev] Vector types as function arguments and interfacing with C
...{ >> %c = add <2 x double> %a, %b >> ret <2 x double> %c >> } >> >> and then call it from C code. What is the appropriate translation of >> the <2 x double> vector type into C? I've tried packed structs and >> "typedef double vec_double __attribute__ ((__vector_size__ (16)))" >> but >> in both cases, it seems that GCC passes these in as pointers rather >> than in registers. > > try reading about the gcc vector extensions in the "C Extensions" > chapter > of the gcc docs. I have tr...