LLVM OpenMP 22.0.0git
omp_parallel_for_ordered.c File Reference
#include <stdio.h>
#include "omp_testsuite.h"

Go to the source code of this file.

Functions

static int check_i_islarger2 (int i)
 Utility function: returns true if the passed argument is larger than the argument of the last call of this function.
int test_omp_parallel_for_ordered ()
int main ()

Variables

static int last_i = 0
int i
static int ii

Function Documentation

◆ check_i_islarger2()

int check_i_islarger2 ( int i)
static

Utility function: returns true if the passed argument is larger than the argument of the last call of this function.

Definition at line 20 of file omp_parallel_for_ordered.c.

References i, and last_i.

Referenced by test_omp_parallel_for_ordered().

◆ main()

int main ( void )

Definition at line 53 of file omp_parallel_for_ordered.c.

References i, REPETITIONS, and test_omp_parallel_for_ordered().

◆ test_omp_parallel_for_ordered()

int test_omp_parallel_for_ordered ( )

Definition at line 28 of file omp_parallel_for_ordered.c.

References check_i_islarger2(), i, ii, last_i, and sum.

Referenced by main().

Variable Documentation

◆ i

int i

Definition at line 7 of file omp_parallel_for_ordered.c.

◆ ii

◆ last_i

int last_i = 0
static

Definition at line 5 of file omp_parallel_for_ordered.c.