Displaying 5 results from an estimated 5 matches for "vec_a".
2005 Dec 02
0
run time assembler patch for altivec, sse + bug fixes
...od_altivec(const float *a, const float *b, int len)
{
int i;
float sum;
int a_aligned = (((unsigned long)a) & 15) ? 0 : 1;
int b_aligned = (((unsigned long)b) & 15) ? 0 : 1;
__vector float MSQa, LSQa, MSQb, LSQb;
__vector unsigned char maska, maskb;
__vector float vec_a, vec_b;
__vector float vec_result;
vec_result = (__vector float)vec_splat_u8(0);
if ((!a_aligned) && (!b_aligned))
{
// This (unfortunately) is the common case.
maska = vec_lvsl(0, a);
maskb = vec_lvsl(0, b);
MSQa = vec_ld(0, a);
MSQ...
2008 Dec 01
1
Help with lattice graphics
...ined with the?graphics package. Any explanatory comments?to understand better the modifications?are most welcome.
Here is my code :
##########################################################
rm(list=ls())
# make up a test data frame with 4 columns
# factors in first 3 cols and a numeric in the 4th
vec_a<-paste("A",1:4,sep=(''));na<-length(vec_a)
vec_b<-paste("B",1:5,sep=(''));nb<-length(vec_b)
yr<-c("2007","2008","2009");ny<-length(yr)
fac_a<-factor(vec_a);fac_b<-factor(vec_b);fac_yr<-factor(yr)
n<-na*n...
2004 Aug 06
2
[PATCH] Make SSE Run Time option. Add Win32 SSE code
Jean-Marc,
>I'm still not sure I get it. On an Athlon XP, I can do something like
>"mulps xmm0, xmm1", which means that the xmm registers are indeed
>supported. Besides, without the xmm registers, you can't use much of
>SSE.
In the Atholon XP 2400+ that we have in our QA lab (Win2000 ) if you run
that code it generates an Illegal Instruction Error. In addition,
2004 Aug 06
6
[PATCH] Make SSE Run Time option.
...ef _USE_ALTIVEC
int i;
float sum;
int a_aligned = (((unsigned long)a) & 15) ? 0 : 1;
int b_aligned = (((unsigned long)b) & 15) ? 0 : 1;
__vector float MSQa, LSQa, MSQb, LSQb;
__vector unsigned char maska, maskb;
__vector float vec_a, vec_b;
__vector float vec_result;
vec_result = (__vector float)vec_splat_u8(0);
if ((!a_aligned) && (!b_aligned)) {
// This (unfortunately) is the common case.
maska = vec_lvsl(0, a);
maskb = vec_lvsl(0, b);...
2011 Aug 16
0
[LLVMdev] Problem I have to run a llvm module pass from main function
...I used to build it into a loadable module for "opt" and it works. Right now, in the main function, I call the MyVec pass with the new method:
main()
{
...
llvm::ModulePass* V = new MyVec();
V->runOnModule(M);
...
}
But the linking process reports:
llvm[0]: Linking Release executable vec_a (without symbols)
llvm[0]: ======= Finished Linking Release Executable vec_a (without symbols)
My Makefile is written as follows:
LEVEL=../..
TOOLNAME=vec_a
LINK_COMPONENTS := core support bitreader bitwriter asmparser instrumentation scalaropts ipo
include $(LEVEL)/Makefile.common
Anyone hav...