LLVM OpenMP 20.0.0git
Macros | Functions
omp_atomic.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_atomic ()
 
int main ()
 

Macro Definition Documentation

◆ DOUBLE_DIGITS

#define DOUBLE_DIGITS   20 /* dt^DOUBLE_DIGITS */

Definition at line 6 of file omp_atomic.c.

◆ KNOWN_PRODUCT

#define KNOWN_PRODUCT   3628800 /* 10! */

Definition at line 8 of file omp_atomic.c.

◆ MAX_FACTOR

#define MAX_FACTOR   10

Definition at line 7 of file omp_atomic.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 355 of file omp_atomic.c.

References i, REPETITIONS, and test_omp_atomic().

◆ test_omp_atomic()

int test_omp_atomic ( )

Definition at line 10 of file omp_atomic.c.

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

Referenced by main().