Annotation of OpenXM_contrib/gmp/mpn/tests/try.h, Revision 1.1
1.1 ! maekawa 1: /*
! 2: Copyright (C) 2000 Free Software Foundation, Inc.
! 3:
! 4: This file is part of the GNU MP Library.
! 5:
! 6: The GNU MP Library is free software; you can redistribute it and/or modify
! 7: it under the terms of the GNU Lesser General Public License as published by
! 8: the Free Software Foundation; either version 2.1 of the License, or (at your
! 9: option) any later version.
! 10:
! 11: The GNU MP Library is distributed in the hope that it will be useful, but
! 12: WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
! 13: or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
! 14: License for more details.
! 15:
! 16: You should have received a copy of the GNU Lesser General Public License
! 17: along with the GNU MP Library; see the file COPYING.LIB. If not, write to
! 18: the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
! 19: MA 02111-1307, USA.
! 20: */
! 21:
! 22: #ifndef __TRY_H__
! 23: #define __TRY_H__
! 24:
! 25: #if defined (__cplusplus)
! 26: extern "C" {
! 27: #endif
! 28:
! 29:
! 30: #ifdef __cplusplus
! 31: #define ANYARGS ...
! 32: #else
! 33: #define ANYARGS
! 34: #endif
! 35:
! 36: typedef mp_limb_t (*tryfun_t) _PROTO ((ANYARGS));
! 37:
! 38: #if HAVE_CALLING_CONVENTIONS
! 39: extern tryfun_t calling_conventions_function;
! 40: mp_limb_t calling_conventions _PROTO ((ANYARGS));
! 41: int calling_conventions_check _PROTO ((void));
! 42: #define CALLING_CONVENTIONS(function) \
! 43: (calling_conventions_function = (function), calling_conventions)
! 44: #define CALLING_CONVENTIONS_CHECK() (calling_conventions_check())
! 45: #else
! 46: #define CALLING_CONVENTIONS(function) (function)
! 47: #define CALLING_CONVENTIONS_CHECK() 1 /* always ok */
! 48: #endif
! 49:
! 50:
! 51: extern int mp_trace_base;
! 52: void mpn_trace _PROTO ((const char *name, mp_srcptr ptr, mp_size_t size));
! 53: void mpn_tracea _PROTO ((const char *name, const mp_ptr *a, int count,
! 54: mp_size_t size));
! 55: void mpn_tracen _PROTO ((const char *name, int num, mp_srcptr ptr,
! 56: mp_size_t size));
! 57: void mpn_trace_file _PROTO ((const char *filename,
! 58: mp_srcptr ptr, mp_size_t size));
! 59: void mpn_tracea_file _PROTO ((const char *filename,
! 60: const mp_ptr *a, int count, mp_size_t size));
! 61: void mpq_trace _PROTO ((const char *name, mpq_srcptr q));
! 62: void mpz_trace _PROTO ((const char *name, mpz_srcptr z));
! 63: void mpz_tracen _PROTO ((const char *name, int num, mpz_srcptr z));
! 64:
! 65: void spinner _PROTO ((void));
! 66: extern unsigned long spinner_count;
! 67:
! 68:
! 69: #if defined (__cplusplus)
! 70: }
! 71: #endif
! 72:
! 73: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>