search for: func4

Displaying 6 results from an estimated 6 matches for "func4".

Did you mean: func
2012 Jul 17
0
[LLVMdev] RFC: Profiling Enhancements (GSoC)
...ch probabilities are not lost during optimization. One known issue is LLVM optimizer can turn branchy code into switch statements and it would completely discard probability. Here is a simple example: static void func2(int N, const int *a, const int *b, int *c) __attribute__((always_inline)); void func4(int N, const int *a, const int *b, int *c) __attribute__((noinline)); void func8(int N, const int *a, const int *b, int *c) __attribute__((noinline)); void func2(int N, const int *a, const int *b, int *c) { *c = 2 + *a + *b; } void func4(int N, const int *a, const int *b, int *c) { *c = 4 + *a +...
2004 May 05
3
sample
Dear List: I have the following simple program: x<- sample(site) VarGuilda1<- var(tapply(x,site,func1)) VarGuilda2<- var(tapply(x,site,func2)) VarGuilda3<- var(tapply(x,site,func3)) VarGuilda4<- var(tapply(x,site,func4)) VarGuilda5<- var(tapply(x,site,func5)) VarGuilda6<- var(tapply(x,site,func6)) VarGuilda7<- var(tapply(x,site,func7)) VarGuilda8<- var(tapply(x,site,func8)) VarGuilda9<- var(tapply(x,site,func9)) Var<-cbind(VarGuilda1,VarGuilda2,VarGuilda3,VarGuilda4,VarGuilda5,VarGuilda6,VarGuil...
2012 Jul 16
2
[LLVMdev] RFC: Profiling Enhancements (GSoC)
Hi all, In light of the expected removal of ProfileInfo this is a request for comments on the next few items that I now plan to work on for GSoC. Planned tasks: #0 Add support for determining branch weight metadata by profiling At the absolute minimum this will require writing a new profile loader which will set branch weight metadata based on profiling data. #1 Optionally use profiling
2010 Sep 10
8
convert "1", "10", and "100" to "0001", "0010", "0100" etc.
Hi, Is there an easy way to convert numbers into a form such that they all have the same number of digits? e.g.: "1", "10", and "100" ...become... "0001", "0010", "0100" etc. I ask because I am producing a large number of files that need to sort consistently by filename. Currently I get this kind of sorting: filename1 filename10
2011 Jan 20
0
Writing functions. please help
...alc)} func2=function(t){ weibull=function(t){ dist=100*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,t, 100) return(calc)} func3=function(t){ weibull=function(t){ dist=t*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,0 ,t) return(calc)} func4=function(t){ weibull=function(t){ dist=t*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,t ,100) return(calc)} lastcalc=(func1+func2)/(func3+func4) return(lastcalc)} appears the following: Error in func1 + func2 : non numeric operator to binary operator 2-How the fun...
2015 Jan 08
2
[LLVMdev] Separating loop nests based on profile information?
> On Jan 7, 2015, at 5:33 PM, Chandler Carruth <chandlerc at google.com> wrote: > > > On Wed, Jan 7, 2015 at 5:19 PM, Philip Reames <listmail at philipreames.com <mailto:listmail at philipreames.com>> wrote: > I've been playing with approaches to getting better optimization of loops which contain infrequently executed slow paths. I've gotten as far as