/* -*-c-*-
*
- * $Id: mpw.h,v 1.1 1999/11/13 01:52:34 mdw Exp $
+ * $Id: mpw.h,v 1.3 2004/04/08 01:36:15 mdw Exp $
*
* Very low-level multiprecision definitions
*
* (c) 1999 Straylight/Edgeware
*/
-/*----- Licensing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------*
*
* This file is part of Catacomb.
*
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
- *
+ *
* Catacomb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Library General Public
* License along with Catacomb; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: mpw.h,v $
- * Revision 1.1 1999/11/13 01:52:34 mdw
- * Very low-level definitions for MP types.
- *
- * Revision 1.1 1999/11/13 01:50:17 mdw
- * Veyr low level definitions for MP types.
- *
- */
-
-#ifndef MPW_H
-#define MPW_H
+#ifndef CATACOMB_MPW_H
+#define CATACOMB_MPW_H
#ifdef __cplusplus
extern "C" {
/*----- Header files ------------------------------------------------------*/
-#ifndef BITS_H
+#ifndef CATACOMB_BITS_H
# include <mLib/bits.h>
#endif
-#ifndef MPTYPES_H
+#ifndef CATACOMB_MPTYPES_H
# include "mptypes.h"
#endif
/* --- @MPW@ --- *
*
- * Arguments: @x@ = an unsigned value
+ * Arguments: @x@ = an unsigned value
*
- * Use: Expands to the value of @x@ masked and typecast to a
- * multiprecision integer word.
+ * Use: Expands to the value of @x@ masked and typecast to a
+ * multiprecision integer word.
*/
#define MPW(x) ((mpw)((x) & MPW_MAX))
/* --- @MPWS@ --- *
*
- * Arguments: @n@ = number of words
+ * Arguments: @n@ = number of words
*
- * Use: Expands to the number of bytes occupied by a given number of
- * words.
+ * Use: Expands to the number of bytes occupied by a given number of
+ * words.
*/
#define MPWS(n) ((n) * sizeof(mpw))