Skip to content
  • David C. Lonie's avatar
    Add compiler detection, VTK_ASSUME. · 2a72d697
    David C. Lonie authored
    VTK_ASSUME can be used to provide optimization hints to
    the compiler by specifying that certain non-obvious
    conditions are true.
    
    This is especially useful for fixing the number of components
    in an array; if an array is known to have 3 components, adding
    
    VTK_ASSUME(array->GetNumberOfComponents() == 3);
    
    can allow the compiler to perform advanced loop unrolling and
    vectorization in certain cases.
    2a72d697