/****************************************************************** * Core Library Version 1.6, June 2003 * Copyright (c) 1995-2003 Exact Computation Project * * File: CORE.h * Synopsis: * The main inclusion file for the Core Library system. * All "Core programs" must include this file. * * Written by * Chee Yap * Chen Li * Zilin Du * * WWW URL: http://cs.nyu.edu/exact/ * Email: exact@cs.nyu.edu * * $Id$ *****************************************************************/ #ifndef CORE_H #define CORE_H #include #include #include // User can still access machine types: typedef double machine_double; typedef long machine_long; #ifndef CORE_LEVEL # define CORE_LEVEL DEFAULT_CORE_LEVEL #endif #if CORE_LEVEL == 1 # define Real double # define Expr double #elif CORE_LEVEL == 2 # undef long # undef double # include "Real.h" # define long Real # define double Real # define Expr Real #elif CORE_LEVEL == 3 # undef long # undef double # include "Expr.h" # define long Expr # define double Expr # define Real Expr #elif CORE_LEVEL == 4 # include "Expr.h" #endif // automaticall link necessary static library under visual c++ #ifdef _MSC_VER #ifdef _DEBUG #pragma comment(lib, "coreDebug.lib") #pragma comment(lib, "gmpDebug.lib") #else #pragma comment(lib, "core.lib") #pragma comment(lib, "gmp.lib") #endif #endif #ifndef CORE_NO_AUTOMATIC_NAMESPACE using namespace CORE; #endif #endif