COMBINATORIAL_BLAS 1.6
 
Loading...
Searching...
No Matches
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#include "user_settings.h"
14
15/* Various modular arithmetic operations for modulus 2^31-1 (0x7FFFFFFF).
16 * These may need to be tweaked to get acceptable performance on some platforms
17 * (especially ones without conditional moves). */
18
19/* This code is now just a dispatcher that chooses the right header file to use
20 * per-platform. */
21
22#ifdef __MTA__
23#include "mod_arith_xmt.h"
24#else
25#ifdef FAST_64BIT_ARITHMETIC
26#include "mod_arith_64bit.h"
27#else
28#include "mod_arith_32bit.h"
29#endif
30#endif
31
32#endif /* MOD_ARITH_H */