LLVM OpenMP
omp_scan_inscan_template.cpp File Reference
#include <cstdlib>
#include <numeric>
#include <stdio.h>

Go to the source code of this file.

Macros

#define N   100

Functions

template<typename T>
bool test_exclusive (T *a, const T *b)
template<typename T>
bool test_inclusive (T *a, const T *b)
int main ()

Macro Definition Documentation

◆ N

#define N   100

Definition at line 13 of file omp_scan_inscan_template.cpp.

Function Documentation

◆ main()

int main ( void )

Definition at line 49 of file omp_scan_inscan_template.cpp.

References a, b, N, test_exclusive(), and test_inclusive().

◆ test_exclusive()

template<typename T>
bool test_exclusive ( T * a,
const T * b )

Definition at line 15 of file omp_scan_inscan_template.cpp.

References a, b, i, N, and sum.

Referenced by main().

◆ test_inclusive()

template<typename T>
bool test_inclusive ( T * a,
const T * b )

Definition at line 32 of file omp_scan_inscan_template.cpp.

References a, b, i, N, and sum.

Referenced by main().