M4RI  1.0.1
debug_dump.h
Go to the documentation of this file.
00001 
00010 /******************************************************************************
00011 *
00012 *                 M4RI: Linear Algebra over GF(2)
00013 *
00014 *    Copyright (C) 2011 Carlo Wood <carlo@alinoe.com>
00015 *
00016 *  Distributed under the terms of the GNU General Public License (GPL)
00017 *  version 2 or higher.
00018 *
00019 *    This code is distributed in the hope that it will be useful,
00020 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00022 *    General Public License for more details.
00023 *
00024 *  The full text of the GPL is available at:
00025 *
00026 *                  http://www.gnu.org/licenses/
00027 ******************************************************************************/
00028 
00029 #ifndef M4RI_DOXYGEN
00030 
00031 #if __M4RI_DEBUG_DUMP
00032 
00033 struct mzd_t;
00034 struct mzp_t;
00035 
00036 extern void m4ri_dd_int(char const* function, char const* file, int line, int i);
00037 extern void m4ri_dd_rci(char const* function, char const* file, int line, rci_t rci);
00038 extern void m4ri_dd_rci_array(char const* function, char const* file, int line, rci_t *rciptr, int len);
00039 extern void m4ri_dd_rawrow(char const* function, char const* file, int line, word const* rowptr, wi_t wide);
00040 extern void m4ri_dd_row(char const* function, char const* file, int line, struct mzd_t const* M, rci_t row);
00041 extern void m4ri_dd_mzd(char const* function, char const* file, int line, struct mzd_t const* M);
00042 extern void m4ri_dd_mzp(char const* function, char const* file, int line, struct mzp_t const* P);
00043 
00044 #define __M4RI_DD_INT(i) m4ri_dd_int(__FUNCTION__, __FILE__, __LINE__, i)
00045 #define __M4RI_DD_RCI(rci) m4ri_dd_rci(__FUNCTION__, __FILE__, __LINE__, rci)
00046 #define __M4RI_DD_RCI_ARRAY(rciptr, len) m4ri_dd_rci_array(__FUNCTION__, __FILE__, __LINE__, rciptr, len)
00047 #define __M4RI_DD_RAWROW(rowptr, wide) m4ri_dd_rawrow(__FUNCTION__, __FILE__, __LINE__, rowptr, wide)
00048 #define __M4RI_DD_ROW(M, row) m4ri_dd_row(__FUNCTION__, __FILE__, __LINE__, M, row)
00049 #define __M4RI_DD_MZD(M) m4ri_dd_mzd(__FUNCTION__, __FILE__, __LINE__, M)
00050 #define __M4RI_DD_MZP(P) m4ri_dd_mzp(__FUNCTION__, __FILE__, __LINE__, P)
00051 
00052 #else // __M4RI_DEBUG_DUMP
00053 
00054 #define __M4RI_DD_INT(i)
00055 #define __M4RI_DD_RCI(rci)
00056 #define __M4RI_DD_RCI_ARRAY(rciptr, len)
00057 #define __M4RI_DD_RAWROW(rowptr, wide)
00058 #define __M4RI_DD_ROW(M, row)
00059 #define __M4RI_DD_MZD(M)
00060 #define __M4RI_DD_MZP(P)
00061 
00062 #endif // __M4RI_DEBUG_DUMP
00063 
00064 #endif // M4RI_DOXYGEN