Tests/support/summation_kernel.cpp
/**
 * @param code_offset  absolute offset of current instruction in the BO
 */
@param code_offset  absolute offset of current instruction in the BO
@param code_offset absolute offset of current instruction in the BO
Instructions align_code(int code_offset, int target_offset) {
  Instructions ret;
  auto align_cond = [target_offset] (int pos) -> bool {
    return (pos % 512) == target_offset;
  };
  while (!align_cond(code_offset)) {
    ret << nop();
    code_offset++;
  }
  return ret;
}
Instructions align_code ( int code_offset , int target_offset ) { Instructions ret ; auto align_cond = [ target_offset ] ( int pos ) -> bool { return ( pos % 512 ) == target_offset ; } ; while ( ! align_cond ( code_offset ) ) { ret << nop ( ) ; code_offset ++ ; } return ret ; }
@param code_offset  absolute offset of current instruction in the BO
@param code_offset absolute offset of current instruction in the BO
// This was actually the default of a parameter in the python version