search for: aconst

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

Did you mean: const
2015 Apr 25
3
[LLVMdev] alias analysis on llvm internal globals
...ll stores to it and computing what addresses it can take on and then compare with fooPtr which can not point to local_fooBuf as it has a function scope. Also, LLVM global variables do not have seem to have scope information. where can i get that information ? Thanks, Xin int foo(int *fooPtr,int aconst) { int i; int sum; int *fooOffsetPtr; static int init = 1; static int *fooBuf = NULL; static int local_fooBuf[512*4] = {}; if (init == 1) { fooBuf = local_fooBuf; init = 0; } fooOffsetPtr = &fooBuf[aconst/2]; #pragma nounroll for (i=0;i&l...
2009 Mar 16
1
Uniroot and Newton-Raphson Anomaly
...result <- sum((1-(1-R)^a)^(1/a))-c*q result } denom <- function(R,a,c,q){ result <- sum(-((1 - (1 - R)^a)^(1/a) * (log((1 - (1 - R)^a)) * (1/a^2)) + (1 - (1 - R)^a)^((1/a) - 1) * ((1/a) * ((1 - R)^a * log((1 - R)))))) result } aConst <- function(R, c, q, con){ a <- .5 # starting value for a change <- 1 while(abs(change) > con) { r1 <- numer(R,a,c,q) r2 <- denom(R,a,c,q) change <- r1/r2 a <- a - change } a } The function now works as follows...
2009 Nov 16
1
No Visible Binding for global variable
...ion(R,a,c,q){ result <- sum(na.rm= TRUE, -((1 - (1 - R)^a)^(1/a) * (log((1 - (1 - R)^a)) * (1/a^2)) + (1 - (1 - R)^a)^((1/a) - 1) * ((1/a) * ((1 - R)^a * log((1 - R)))))) result } aConst <- function(R, c, q, con){ a <- .5 # starting value for a change <- 1 while(abs(change) > con) { r1 <- numer(R,a,c,q)...