search for: ret_1

Displaying 8 results from an estimated 8 matches for "ret_1".

Did you mean: ret__
2009 Jul 02
4
(no subject)
Hi Guys, It is very simple question, but I can't find the answer! Please help me. I use R and such simple function as length() doesn't work. The result is always 1 even if my data are more then 1 observations! Do I have to load any additional library? > length(Ret_1) [1] 1 > length function (x) .Primitive("length") Thank you!!! -- Best regards, Andy Fetsun [[alternative HTML version deleted]]
2016 Feb 10
4
Memory Store/Load Optimization Issue (Emulating stack)
...1 = bar) %sp_3_ptr = bitcast i8* %sp_2 to i32* %val1 = load i32, i32* %sp_3_ptr, align 4 %sp_3 = getelementptr i8, i8* %sp_2, i32 4 ; val2 = pop (val2 = foo) %sp_4_ptr = bitcast i8* %sp_3 to i32* %val2 = load i32, i32* %sp_4_ptr, align 4 %sp_4 = getelementptr i8, i8* %sp_3, i32 4 %ret_1 = insertvalue { i32, i32, i8* } undef, i32 %val1, 0 %ret_2 = insertvalue { i32, i32, i8* } %ret_1, i32 %val2, 1 %ret_3 = insertvalue { i32, i32, i8* } %ret_2, i8* %sp_4, 2 ret { i32, i32, i8* } %ret_3 } After optimization ("opt -instcombine ./code.ll -S") define { i32, i32, i8* }...
2016 Feb 08
2
Memory Store/Load Optimization Issue (Emulating stack)
..._ptr, align 4 ; val1 = pop (val1 = bar) %sp_3_ptr = inttoptr i32 %sp_2 to i32* %val1 = load i32, i32* %sp_3_ptr, align 4 %sp_3 = add i32 %sp_2, 4 ; val2 = pop (val2 = foo) %sp_4_ptr = inttoptr i32 %sp_3 to i32* %val2 = load i32, i32* %sp_4_ptr, align 4 %sp_4 = add i32 %sp_3, 4 %ret_1 = insertvalue { i32, i32, i32 } undef, i32 %val1, 0 %ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %val2, 1 %ret_3 = insertvalue { i32, i32, i32 } %ret_2, i32 %sp_4, 2 ret { i32, i32, i32 } %ret_3 } This code will "push" two values onto the stack and pop them in reverse order...
2016 Feb 10
2
Memory Store/Load Optimization Issue (Emulating stack)
...32* %sp_3_ptr, align 4 >> %sp_3 = getelementptr i8, i8* %sp_2, i32 4 >> >> ; val2 = pop (val2 = foo) >> %sp_4_ptr = bitcast i8* %sp_3 to i32* >> %val2 = load i32, i32* %sp_4_ptr, align 4 >> %sp_4 = getelementptr i8, i8* %sp_3, i32 4 >> >> %ret_1 = insertvalue { i32, i32, i8* } undef, i32 %val1, 0 >> %ret_2 = insertvalue { i32, i32, i8* } %ret_1, i32 %val2, 1 >> %ret_3 = insertvalue { i32, i32, i8* } %ret_2, i8* %sp_4, 2 >> >> ret { i32, i32, i8* } %ret_3 >> } >> >> After optimization ("o...
2016 Feb 12
2
Memory Store/Load Optimization Issue (Emulating stack)
...32* %sp_3_ptr, align 4 >> %sp_3 = getelementptr i8, i8* %sp_2, i32 4 >> >> ; val2 = pop (val2 = foo) >> %sp_4_ptr = bitcast i8* %sp_3 to i32* >> %val2 = load i32, i32* %sp_4_ptr, align 4 >> %sp_4 = getelementptr i8, i8* %sp_3, i32 4 >> >> %ret_1 = insertvalue { i32, i32, i8* } undef, i32 %val1, 0 >> %ret_2 = insertvalue { i32, i32, i8* } %ret_1, i32 %val2, 1 >> %ret_3 = insertvalue { i32, i32, i8* } %ret_2, i8* %sp_4, 2 >> >> ret { i32, i32, i8* } %ret_3 >> } >> >> After optimization ("o...
2016 Feb 07
5
Assigning constant value without alloca/load/store
...true, i32 0, i32 0 %reg_b_0 = select i1 true, i32 0, i32 0 %reg_c_0 = select i1 true, i32 0, i32 0 ; Translated instructions %reg_a_1 = add i32 %var_c, 2 %reg_a_2 = select i1 true, i32 12, i32 0 ; Prepare return values %ret_0 = insertvalue { i32, i32, i32 } undef, i32 %reg_a_2, 0 %ret_1 = insertvalue { i32, i32, i32 } %ret_0, i32 %reg_b_0, 1 %ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %reg_c_0, 2 ret { i32, i32, i32 } %ret_2 } I am basically using "select i1 true, i32 1, i32 0" so after optimization it gets: %val = i32 1 But as I said this looks like a hack...
2016 Feb 08
2
Assigning constant value without alloca/load/store
...0 = select i1 true, i32 0, i32 0 >> >> ; Translated instructions >> %reg_a_1 = add i32 %var_c, 2 >> %reg_a_2 = select i1 true, i32 12, i32 0 >> >> ; Prepare return values >> %ret_0 = insertvalue { i32, i32, i32 } undef, i32 %reg_a_2, 0 >> %ret_1 = insertvalue { i32, i32, i32 } %ret_0, i32 %reg_b_0, 1 >> %ret_2 = insertvalue { i32, i32, i32 } %ret_1, i32 %reg_c_0, 2 >> >> ret { i32, i32, i32 } %ret_2 >> } >> >> I am basically using "select i1 true, i32 1, i32 0" so after optimization >&gt...
2009 Jul 07
1
Error in Rolling window of function - rollapply
...ng window for calculation in Excel and obtained that the number of outputs for Excel is 36 and for R is 18. The total number of observations is 37. In the attachment you can find pdf of the Excel and Excel file. Below you can find my commands in R. > Ret<-read.csv("data.csv") > Ret_1<-zoo((Ret)) > Ret_2<-rollapply(Ret_1,20,sd) > Volatility_20<-sd(Ret_2) > Volatility_20 Data 0.03802453 > Ret_2 Data 10 0.9170356 11 0.9147269 12 0.8982093 13 0.9169873 14 0.9156607 15 0.8961262 16 0.9615083 17 0.9804045 18 0.9853978 19 0.9888628 20 0.8798952 21 0....