search for: arg1

Displaying 20 results from an estimated 1279 matches for "arg1".

Did you mean: arg
2006 Jul 02
4
Test for argument in ...
Hello! Say I have a function foo1, which has argument ... to pass various arguments to foo2 i.e. foo1 <- function(x, ...) { foo2(x, ...) } Say that foo2 accepts argument arg1 and I would like to do the following: - if foo1 is called as foo1(x) then I would like to assign some value to arg1 inside foo1 before calling foo2 arg1 <- "some value" foo2(x, arg1=arg1) - if foo1 is called foo1(arg1="some other value") do not assign some value to arg1 and...
2007 Apr 18
0
[PATCH] paravirt_ops: Clean up paravirt patchable wrappers
...;=c" (__ecx) \ - : paravirt_type(__op), \ - paravirt_clobber(CLBR_ANY) \ + : paravirt_type(op), \ + paravirt_clobber(CLBR_ANY), \ + ##__VA_ARGS__ \ : "memory", "cc"); \ }) -#define PVOP_CALL1(__rettype, __op, arg1) \ - ({ \ - __rettype __ret; \ - if (sizeof(__rettype) > sizeof(unsigned long)) { \ - unsigned long long __tmp; \ - unsigned long __ecx; \ - asm volatile(paravirt_alt(PARAVIRT_CALL) \ - : "=A" (__tmp), "=c" (__ecx) \ - : "a&quot...
2007 Apr 18
0
[PATCH] paravirt_ops: Clean up paravirt patchable wrappers
...;=c" (__ecx) \ - : paravirt_type(__op), \ - paravirt_clobber(CLBR_ANY) \ + : paravirt_type(op), \ + paravirt_clobber(CLBR_ANY), \ + ##__VA_ARGS__ \ : "memory", "cc"); \ }) -#define PVOP_CALL1(__rettype, __op, arg1) \ - ({ \ - __rettype __ret; \ - if (sizeof(__rettype) > sizeof(unsigned long)) { \ - unsigned long long __tmp; \ - unsigned long __ecx; \ - asm volatile(paravirt_alt(PARAVIRT_CALL) \ - : "=A" (__tmp), "=c" (__ecx) \ - : "a&quot...
2015 Jun 22
2
[LLVMdev] bb-vectorizer transforms only part of the block
...#39; numbers in the pass that can be tweaked? Thanks, Frank ; ModuleID = '<stdin>' target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" define void @main(i64 %lo, i64 %hi, float* noalias %arg0, float* noalias %arg1, float* noalias %arg2) { entrypoint: %0 = getelementptr float* %arg1, i64 64 %1 = getelementptr float* %arg2, i64 64 %2 = getelementptr float* %arg0, i64 64 %3 = bitcast float* %arg1 to <4 x float>* %4 = bitcast float* %0 to <4 x float>* %5 = bitcast float* %arg2 to &l...
2009 Jul 06
5
Dial cmd help
I have a dial cmd buried amongst a series of others in a macro like so: exten => s,n,Dial(SIP/1${ARG1}@sip_peer,60,T) Reason for adding a "1" is all the others in the macro don't want the "1" so this was easiest at the time. Now I need to send NA long distance through this macro. All the other dial cmds will just work, but this one is going to try to dial 11NXXNXXXXXX inste...
2015 Jul 01
3
[LLVMdev] SLP vectorizer on AVX feature
...use LLVM 3.6 checked out yesterday ~/toolchain/install/llvm-3.6/bin/opt -datalayout -basicaa -slp-vectorizer -instcombine < func_4x4x4_scalar_p_scalar.ll -S the output goes like: ; ModuleID = '<stdin>' define void @main(i64 %lo, i64 %hi, float* noalias %arg0, float* noalias %arg1, float* noalias %arg2) { entrypoint: %0 = bitcast float* %arg1 to <4 x float>* %1 = load <4 x float>* %0, align 4 %2 = bitcast float* %arg2 to <4 x float>* %3 = load <4 x float>* %2, align 4 %4 = fadd <4 x float> %3, %1 %5 = bitcast float* %arg0 to &l...
2010 Jun 16
3
Function argument as string
Hi, Suppose a write a function a_fn<-function(arg1) { return(table(arg1)); } I have a column called AGE. Now I call the function c = a_fn(AGE); When a_fn is called, AGE is received in arg1. My question is, how do I access the actual name of the argument arg1? i.e, inside the function, i need to know that the actual name of arg1 is "AGE...
2015 May 09
4
[LLVMdev] [LSR] hoisting loop invariants in reverse order
...(pixel_idx + 1) * c); // {(a*b+1)*c, +, b*c} bar((pixel_idx + 2) * c); // {(a*b+2)*c, +, b*c} bar((pixel_idx + 3) * c); // {(a*b+3)*c, +, b*c} } } and LSR produced void foo(float *input, int a, int b, int c, int n) { * int arg3 = (a * b + 3) * c;* * int arg2 = (a * b + 2) * c;* * int arg1 = (a * b + 1) * c;* * int arg0 = a * b * c;* for (int node_x = 0; node_x < n; ++node_x) { bar(arg0); bar(arg1); bar(arg2); bar(arg3); arg0 += b * c; arg1 += b * c; arg2 += b * c; arg3 += b * c; } } (with obvious redundant operations, i.e. a * b and b * c, com...
2014 Aug 07
3
[LLVMdev] MCJIT generates MOVAPS on unaligned address
...gument with only natural alignment (float*). This x86 instruction requires the memory address to be 16 byte aligned which 88 plus something aligned to 4 byte isn't. Here the according IR code which was produced from the SLP vectorizer: define void @func(float* noalias %arg0, float* noalias %arg1, float* noalias %arg2) { entrypoint: ... %104 = getelementptr float* %arg0, i32 22 ... %204 = bitcast float* %104 to <4 x float>* store <4 x float> %198, <4 x float>* %204 This in itself not wrong. However, shouldn't the lowering pass recognize the wrong alignment?...
2016 Mar 14
4
LLVM 3.8 change in function argument lists?
Hi, I am upgrading my project from 3.7 to 3.8. I find that following code used to compile in 3.7 but doesn't in 3.8 and I can't understand why. llvm::Function *mainFunc = ...; auto argiter = mainFunc->arg_begin(); llvm::Value *arg1 = argiter++; arg1->setName("obj"); But if I change the code to following it compiles: auto argiter = mainFunc->arg_begin(); llvm::Value *arg1 = &(*argiter); arg1->setName("obj"); As far as I can tell the first version should have worked as well. Any pointers to...
2005 Sep 19
0
Voicemail() application returning -1 on a hangup
...# to exit the voicemail after speaking, or lets it time out. However, when they just hangup (which is what 99 percent of people do) Voicemail() returns -1, which apparently stops any further extensions from executing. Here is my vm macro: [macro-vm] exten => s,1,NoOp(At start of macro-vm---Arg1=${ARG1} Arg2=${ARG2}) exten => s,2,Goto(s-${ARG2},1) exten => s-BUSY,1,Voicemail(b${ARG1}) ; Voicemail Busy message exten => s-BUSY,2,Hangup() exten => _s-.,1,NoOp(Before Voicemail-u---Arg1=${ARG1} Arg2=${ARG2}) exten => _s-.,2,Voicemail(u${ARG1}) ; Voicemail Unavailable mess...
2007 May 15
3
Mr. Spencer Written
Hi, Mr. Spencer written the article "Using DUNDi with a Cluster of Asterisk Servers <http://www.voip-magazine.com/content/view/3644/0/1/0/> " in the VoIP Magazine and the piece follow: [lookupdundi] exten => _X,1,Goto(${ARG1},1) switch => DUNDi/priv exten => i,1,Goto(lookupmysql,${INVALID_EXTEN},1) I didn't get understand the usage ARG1 argument in the context. Do use ARG1 variable only into macro? Is not this usage apparent contradiction with Asterisk documents? Do anyone get explain this? Regards, Cle...
2007 Sep 06
1
labelling specific points xyplot
...ble, and have encountered a few problems. An example dataframe that goes with the following code is at the end of this message. 1st step, adding labels (from another column in the dataframe) to my chosen points : I've figures this out, but I am passing my whole dataframe as an extra argument (arg1) which I realize is probably useless, so if anybody can give me a way to work around this... xyplot(pp~nn,groups=vari,data=test,auto.key=list(space="right"),arg1=test,arg2="2",arg3="loc", panel=function(x,y,groups,arg1,arg2,arg3,...) { panel.superpose(x,y,group...
2009 Jul 20
1
callforward with asterisk-gui.problem with stdexten
...on asterisk-gui and apply it.. it recreates the macro-stdexten and deletes my configuration regarding to it. So where should i add my call-forward configuration??? Where am i making a mistake?? [macro-stdexten] exten = s,1,Set(__DYNAMIC_FEATURES=${FEATURES}) exten = s,2,GotoIf($["${FOLLOWME_${ARG1}}" = "1"]?5:3) ----adding starts from here---------------------------- exten = s,3,Set(temp=${DB(CFIM/${ARG1})}) exten = s,4,Dial(Local/${temp}@default/n) ; Unconditional forward exten = s,5,Set(DB(lastcaller/${ARG1})=${CALLERID(num)}) ; Note the last caller ------ends here--------...
2005 Mar 08
2
GotoIf with Authenticate
...suggestions? Thanks extex => s,1,GotoIf($[${EXTEN} = "2006"]?3) exten => s,2,Authenticate(731) exten => s,3,GotoIf($[foo${ECID${CALLERIDNUM}} = foo]?4) exten => s,4,SetCallerID(${ECID${CALLERIDNUM}}) exten => s,5,Goto(6) exten => s,6,GotoIf($[foo${OUTCID_${ARG1}} = foo]?6) exten => s,7,SetCallerID(${OUTCID_${ARG1}}) exten => s,8,SetVar(length=${LEN(${DIAL_OUT_${ARG1}})}) exten => s,9,Dial(${OUT_${ARG1}}/w${ARG2:${length}}) exten => s,10,Congestion exten => s,108,Macro(outisbusy) -------------- next part -------------- An HTML attachm...
2017 Jun 06
3
Force argument to have quotes
...reproducible example of the issue with comments. ### This is a sample structure of the configuration file scoreConfig <- structure(list(Function = c("myFunction1", "myFunction1", "myFunction1", "myFunction2", "myFunction2"), Argument = c("arg1", "arg2", "arg3", "arg1", "arg2"), Value = c("5", "10", "Hello", "5", "10"), Class = c("numeric", "numeric", "character", "numeric", "numeric")), .Names...
2009 Jul 24
9
getting extra characters with printf(copyin(a, b))
...some reason... even though the length is 5 on that first set the second time through, I get far more than 5 characters. If I stop and restart the DTrace script, I get good output the first time. This is on OpenSolaris 2009.06. This is quite easy to reproduce. The script is the following, where arg1 is not a string but a pointer to the key from the command and arg2 is the length of that key. memcached*::command-get / (signed int) arg3 != -1 / { printf("get %s, FOUND KEY\n", stringof(copyin(arg1, arg2))); } memcached*::command-get / (signed int) arg3 == -1 / { printf("get...
2006 Aug 15
2
Aliases for arguments in a function
...ned or another name. Within the function (and other functions) use the argument name as originally written, so I don't want to simply remove the old argument name for the new one, but simply allow the function to treat both argument names as equivalent. Here is an example: foo <- function(arg1, this) { if(this < 0) stop("this must be positive") return(arg1/this) } foo(arg1=5, this=10) But, I also want foo() to work equivalently with the following (where 'this' and 'that 'are treated as if they were the same): foo(arg1=5, that=10) Any thoughts would be appr...
2007 Jun 06
2
name of the variable that will contain the result of a function
Hi everyone, say I have a function called 'foo', which takes the argument arg1. Is there any mechanism that I can use to "learn" about the variable where foo(arg1) is going to be stored? For example: x <- foo(arg1) so, inside foo() I'd like to be able to get the string "x". if, foo(arg1) was used insted, I'd like to get NA. thank you v...
2006 May 25
13
functions calling functions
I think I may be missing a fundamental concept I hope someone can help me with. I have functions that won''t call other functions. Particularly after an Ajax request. In the following object the ajax request onComplete calls the ajaxFetched function successfully. ajaxFetched tries to call function2 but function2 does not execute. Any ideas or workarounds? thanks Kevin o =