COMBINATORIAL_BLAS  1.6
mod_arith.h
Go to the documentation of this file.
1 /* Copyright (C) 2010 The Trustees of Indiana University. */
2 /* */
3 /* Use, modification and distribution is subject to the Boost Software */
4 /* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
5 /* http://www.boost.org/LICENSE_1_0.txt) */
6 /* */
7 /* Authors: Jeremiah Willcock */
8 /* Andrew Lumsdaine */
9 
10 #ifndef MOD_ARITH_H
11 #define MOD_ARITH_H
12 
13 /* Various modular arithmetic operations for modulus 2^31-1 (0x7FFFFFFF).
14  * These may need to be tweaked to get acceptable performance on some platforms
15  * (especially ones without conditional moves). */
16 
17 /* This code is now just a dispatcher that chooses the right header file to use
18  * per-platform. */
19 
20 /* FIXME: fill this in automatically */
21 #ifndef FAST_64BIT_ARITHMETIC
22 #define FAST_64BIT_ARITHMETIC
23 #endif
24 
25 #ifdef __MTA__
26 #include "mod_arith_xmt.h"
27 #else
28 #ifdef FAST_64BIT_ARITHMETIC
29 #include "mod_arith_64bit.h"
30 #else
31 #include "mod_arith_32bit.h"
32 #endif
33 #endif
34 
35 #endif /* MOD_ARITH_H */