PIPS
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <complex.h>
Go to the source code of this file.
Macros | |
#define | _print_array(name, ptr, n, format, stype) |
Functions | |
int | _init_data (char *ptr, const ssize_t n) |
void | init_data_file (const char *data_file) |
void | close_data_file () |
void | print_array_float (const char *name, const float *arr, const unsigned int n) |
void | print_array_int (const char *name, const int *arr, const unsigned int n) |
void | print_array_double (const char *name, const float *arr, const unsigned int n) |
void | print_array_long (const char *name, const long *arr, const unsigned int n) |
void | print_array_cplx (const char *name, const float complex *arr, const unsigned int n) |
int | init_data_gen (void *ptr, const unsigned int n, const ssize_t stype) |
int | init_data_float (float *ptr, const unsigned int n) |
int | init_data_double (double *ptr, const unsigned int n) |
int | init_data_long (long *ptr, const unsigned int n) |
int | init_data_int (int *ptr, const unsigned int n) |
int | init_data_cplx (float complex *ptr, const unsigned int n) |
void | init_args (int argc, char **argv) |
Variables | |
static FILE * | _f_data_file = 0 |
#define _print_array | ( | name, | |
ptr, | |||
n, | |||
format, | |||
stype | |||
) |
int _init_data | ( | char * | ptr, |
const ssize_t | n | ||
) |
Definition at line 83 of file tools.c.
References _f_data_file, exit, and fprintf().
Referenced by init_data_gen().
void close_data_file | ( | ) |
Definition at line 48 of file tools.c.
References _f_data_file.
Referenced by main().
void init_args | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 131 of file tools.c.
References init_data_gen().
void init_data_file | ( | const char * | data_file | ) |
Definition at line 36 of file tools.c.
References _f_data_file, and exit.
Referenced by init_args(), and main().
Definition at line 125 of file tools.c.
References init_data_gen().
Referenced by main().
Definition at line 120 of file tools.c.
References _init_data().
Referenced by init_data_double(), init_data_float(), init_data_int(), and init_data_long().
Definition at line 141 of file tools.c.
References init_data_gen().
Referenced by main().
Definition at line 136 of file tools.c.
References init_data_gen().
void print_array_cplx | ( | const char * | name, |
const float complex * | arr, | ||
const unsigned int | n | ||
) |
void print_array_double | ( | const char * | name, |
const float * | arr, | ||
const unsigned int | n | ||
) |
void print_array_float | ( | const char * | name, |
const float * | arr, | ||
const unsigned int | n | ||
) |
Definition at line 54 of file tools.c.
References _print_array.
Referenced by main().
Definition at line 59 of file tools.c.
References _print_array.
void print_array_long | ( | const char * | name, |
const long * | arr, | ||
const unsigned int | n | ||
) |
Definition at line 69 of file tools.c.
References _print_array.
|
static |
Definition at line 32 of file tools.c.
Referenced by _init_data(), close_data_file(), and init_data_file().