search for: mysecond

Displaying 2 results from an estimated 2 matches for "mysecond".

Did you mean: msecond
2009 Jun 26
3
changing default arguments of a function and return the modified function as a result
...of things, among which the initial function with its default arguments changed. An example of what i will like to obtain below: ## initial function myfun <- function(x, a=19, b=21){ return(a * x + b) } ## this is the function i will like to create ## (does not work as it is written here) mysecond.fun <- function(a, b, c = myfun(a=2, b=15)){ return(list(a=a, b=b c=c)) } So I would be able to call: mysecond.fun$c(x=12) And this will be equivalent of calling: myfun(x=12, a=2, b=15 ) ## i.e. i have changed the default values of myfun and ## stored it in a new function mysecond.fun$c...
2012 Jan 04
0
[LLVMdev] Volatile Functions
...The "bug" itself is not really a bug but a performance issue. The details aren't important but in the course of investigation I came across a general scheduling problem I don't know how to solve. Let's say we have a routine for getting the clock tick of the CPU, called "mysecond." This is a user-written function that may or may not call some inline asm. It is not an intrinsic, just an ordinary function. The situation I ran into is this: extern volatile double mysecond(void); int main() { start = mysecond() for(...) { ... } end = mysecond() ... } Th...