source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrio2x.h

Last change on this file was 823, checked in by meunier, 8 years ago
  • Improved scripts for simulations and graphes
  • Continued to clean up the lib nrc2 (from nrio2x.x to nrmem1.c)
  • Added a version (Fast - Parmerge - No stats)
File size: 4.0 KB
Line 
1/* ---------------- */
2/* --- nrio2x.h --- */
3/* ---------------- */
4
5/*
6* Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7* Univ Paris Sud XI, CNRS
8*/
9
10#ifndef __NRIO2X_H__
11#define __NRIO2X_H__
12
13
14/* ------------------------------ */
15/* --- display_matrix_endline --- */
16/* --- display_matrix_endline0 --- */
17/* --- display_matrix_endline1 --- */
18/* --- display_matrix_number_endline0 --- */
19/* --- display_matrix_number_endline1 --- */
20/* ------------------------------ */
21
22#define display_type_matrix_endline(t) \
23void short_name(t,display_,matrix_endline)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \
24void short_name(t,display_,matrix_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \
25void short_name(t,display_,matrix_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \
26void short_name(t,display_,matrix_number_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name); \
27void short_name(t,display_,matrix_number_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * name);
28
29display_type_matrix_endline(int8_t);
30display_type_matrix_endline(uint8_t);
31display_type_matrix_endline(int16_t);
32display_type_matrix_endline(uint16_t);
33display_type_matrix_endline(int32_t);
34display_type_matrix_endline(uint32_t);
35display_type_matrix_endline(int64_t);
36display_type_matrix_endline(uint64_t);
37
38
39/* ------------------------- */
40/* --- display_trimatrix --- */
41/* ------------------------- */
42
43#define display_type_trimatrix(t) \
44void short_name(t,display_,trimatrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step, char * format, char * name);
45
46display_type_trimatrix(int8_t);
47display_type_trimatrix(uint8_t);
48display_type_trimatrix(int16_t);
49display_type_trimatrix(uint16_t);
50display_type_trimatrix(int32_t);
51display_type_trimatrix(uint32_t);
52display_type_trimatrix(int64_t);
53display_type_trimatrix(uint64_t);
54display_type_trimatrix(float);
55display_type_trimatrix(double);
56
57
58
59
60/* ----------------------- */
61/* --- write_trimatrix --- */
62/* --- write_matrix_endline --- */
63/* --- write_imatrix_endline0 --- */
64/* --- write_imatrix_endline1 --- */
65/* --- write_imatrix_number_endline0 --- */
66/* --- write_imatrix_number_endline1 --- */
67/* -- fwrite_trimatrix -- */
68/* -- fread_trimatrix -- */
69/* ----------------------- */
70
71#define write_type_trimatrix(t) \
72void short_name(t,write_,trimatrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step, char * format, char * filename); \
73void short_name(t,write_,matrix_endline)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \
74void short_name(t,write_,matrix_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \
75void short_name(t,write_,matrix_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \
76void short_name(t,write_,matrix_number_endline0)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \
77void short_name(t,write_,matrix_number_endline1)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, char * format, char * filename); \
78void short_name(t,fwrite_,trimatrix)(t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step, char * filename); \
79void short_name(t,fread_,trimatrix)(char * filename, t ** m, int32_t i0, int32_t i1, int32_t j0, int32_t j1, int32_t step);
80
81write_type_trimatrix(int8_t);
82write_type_trimatrix(uint8_t);
83write_type_trimatrix(int16_t);
84write_type_trimatrix(uint16_t);
85write_type_trimatrix(int32_t);
86write_type_trimatrix(uint32_t);
87write_type_trimatrix(int64_t);
88write_type_trimatrix(uint64_t);
89write_type_trimatrix(float);
90write_type_trimatrix(double);
91
92
93
94#endif /* __NRIO2X_H__ */
95
96
97// Local Variables:
98// tab-width: 4
99// c-basic-offset: 4
100// c-file-offsets:((innamespace . 0)(inline-open . 0))
101// indent-tabs-mode: nil
102// End:
103
104// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
105
Note: See TracBrowser for help on using the repository browser.