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

Go to the source code of this file.

Macros

#define DOUBLE_DIGITS   20 /* dt^DOUBLE_DIGITS */
#define MAX_FACTOR   10
#define KNOWN_PRODUCT   3628800 /* 10! */

Functions

int test_omp_parallel_reduction ()
int main ()

Macro Definition Documentation

◆ DOUBLE_DIGITS

#define DOUBLE_DIGITS   20 /* dt^DOUBLE_DIGITS */

Definition at line 6 of file omp_parallel_reduction.c.

◆ KNOWN_PRODUCT

#define KNOWN_PRODUCT   3628800 /* 10! */

Definition at line 8 of file omp_parallel_reduction.c.

◆ MAX_FACTOR

#define MAX_FACTOR   10

Definition at line 7 of file omp_parallel_reduction.c.

Function Documentation

◆ main()

int main ( void )

Definition at line 243 of file omp_parallel_reduction.c.

References i, REPETITIONS, and test_omp_parallel_reduction().

◆ test_omp_parallel_reduction()

int test_omp_parallel_reduction ( )

Definition at line 10 of file omp_parallel_reduction.c.

References DOUBLE_DIGITS, i, KNOWN_PRODUCT, LOOPCOUNT, MAX_FACTOR, result, and sum.

Referenced by main().