LLVM OpenMP 22.0.0git
fields_modifiers.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>

Go to the source code of this file.

Macros

#define XSTR(x)
#define STR(x)
#define streqls(s1, s2)
#define check(condition)
#define BUFFER_SIZE   1024

Functions

charget_string (size_t check_needed)
void check_thread_num_padded_rjustified ()
void check_thread_num_rjustified ()
void check_thread_num_ljustified ()
void check_thread_num_padded_ljustified ()
int main (int argc, char **argv)

Variables

char buf [BUFFER_SIZE]

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   1024

Definition at line 20 of file fields_modifiers.c.

◆ check

#define check ( condition)
Value:
if (!(condition)) { \
fprintf(stderr, "error: %s: %d: " STR(condition) "\n", __FILE__, \
__LINE__); \
exit(1); \
}
#define STR(x)
int condition

Definition at line 13 of file fields_modifiers.c.

Referenced by check_thread_num_ljustified(), check_thread_num_padded_ljustified(), check_thread_num_padded_rjustified(), check_thread_num_rjustified(), and get_string().

◆ STR

#define STR ( x)
Value:
XSTR(x)
#define XSTR(x)

Definition at line 9 of file fields_modifiers.c.

◆ streqls

#define streqls ( s1,
s2 )
Value:
(!strcmp(s1, s2))

Definition at line 11 of file fields_modifiers.c.

◆ XSTR

#define XSTR ( x)
Value:
#x

Definition at line 8 of file fields_modifiers.c.

Function Documentation

◆ check_thread_num_ljustified()

void check_thread_num_ljustified ( )

Definition at line 73 of file fields_modifiers.c.

References char, check, get_string(), i, j, omp_set_affinity_format, and s.

Referenced by main().

◆ check_thread_num_padded_ljustified()

void check_thread_num_padded_ljustified ( )

Definition at line 92 of file fields_modifiers.c.

References char, check, get_string(), i, j, omp_set_affinity_format, and s.

Referenced by main().

◆ check_thread_num_padded_rjustified()

void check_thread_num_padded_rjustified ( )

Definition at line 35 of file fields_modifiers.c.

References char, check, get_string(), i, j, omp_set_affinity_format, and s.

Referenced by main().

◆ check_thread_num_rjustified()

void check_thread_num_rjustified ( )

Definition at line 54 of file fields_modifiers.c.

References char, check, get_string(), i, j, omp_set_affinity_format, and s.

Referenced by main().

◆ get_string()

char * get_string ( size_t check_needed)

Definition at line 25 of file fields_modifiers.c.

References buf, BUFFER_SIZE, check, and omp_capture_affinity.

◆ main()

Variable Documentation

◆ buf

Definition at line 22 of file fields_modifiers.c.