search for: valid2

Displaying 4 results from an estimated 4 matches for "valid2".

Did you mean: valid
2011 Oct 10
3
[LLVMdev] Disable Short-Circuit Evaluation?
...globalIndexY0 >= 4 && globalIndexY0 < 3910; int globalIndexY1 = get_group_id(1)*186 + 6*get_local_id(1) + 1 + 1; bool valid1 = validX && globalIndexY1 >= 4 && globalIndexY1 < 3910; int globalIndexY2 = get_group_id(1)*186 + 6*get_local_id(1) + 2 + 1; bool valid2 = validX && globalIndexY2 >= 4 && globalIndexY2 < 3910; Clang, even at -O0, is performing short-circuit evaluation of these expressions, resulting in a fair number of branch instructions being generated. For most targets, this is a beneficial optimizations. However, f...
2011 Oct 10
1
[LLVMdev] [cfe-dev] Disable Short-Circuit Evaluation?
Justin Holewinski <justin.holewinski at gmail.com> writes: > int globalIndexY2 = get_group_id(1)*186 + 6*get_local_id(1) + 2 + 1; > bool valid2       = validX && globalIndexY2 >= 4 && globalIndexY2 < 3910; > > Clang, even at -O0, is performing short-circuit evaluation of these > expressions, resulting in a fair number of branch instructions being > generated. It has to. This is the semantics of C. Short...
2011 Oct 10
0
[LLVMdev] [cfe-dev] Disable Short-Circuit Evaluation?
10.10.2011, 18:29, "David A. Greene" <greened at obbligato.org>: > Justin Holewinski <justin.holewinski at gmail.com> writes: > >>  int globalIndexY2 = get_group_id(1)*186 + 6*get_local_id(1) + 2 + 1; >>  bool valid2       = validX && globalIndexY2 >= 4 && globalIndexY2 < 3910; >> >>  Clang, even at -O0, is performing short-circuit evaluation of these >>  expressions, resulting in a fair number of branch instructions being >>  generated. > > It has to.  This i...
2016 Jun 04
0
factors with non-unique ("duplicated") levels have been deprecated since 2009 -- are *more* deprecated now -- and why you should be hesitant misusing suppressWarnings()
...abels <- x at value.labels if (length(labels)) { values <- labels at values labels <- labels at .Data } else { values <- labels <- sort(unique(x at .Data)) } filter <- x at value.filter use.levels <- if (length(filter)) is.valid2(values, filter) else TRUE f <- suppressWarnings(factor(x at .Data, levels = values[use.levels], labels = labels[use.levels])) if (length(attr(x, "contrasts"))) contrasts(f) <- contrasts(x) f } <environment: namespace:memisc> and the suppressW...