LLVM OpenMP 20.0.0git
Functions | Variables
kmp_aligned_malloc.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <omp.h>
#include "omp_testsuite.h"

Go to the source code of this file.

Functions

unsigned aligned_by (uint64_t addr)
 
int test_kmp_aligned_malloc ()
 
int main ()
 

Variables

int alignments [] = {64, 128, 256, 512, 1024, 2048, 4096}
 

Function Documentation

◆ aligned_by()

unsigned aligned_by ( uint64_t  addr)

Definition at line 9 of file kmp_aligned_malloc.c.

References addr, and alignment.

Referenced by test_kmp_aligned_malloc().

◆ main()

int main ( void  )

Definition at line 51 of file kmp_aligned_malloc.c.

References i, REPETITIONS, and test_kmp_aligned_malloc().

◆ test_kmp_aligned_malloc()

int test_kmp_aligned_malloc ( )

Definition at line 17 of file kmp_aligned_malloc.c.

References addr, aligned_by(), alignment, alignments, err, i, kmp_aligned_malloc, and kmp_free.

Referenced by main().

Variable Documentation

◆ alignments

int alignments[] = {64, 128, 256, 512, 1024, 2048, 4096}

Definition at line 7 of file kmp_aligned_malloc.c.

Referenced by test_kmp_aligned_malloc().