Changeset dc093ce in git for misc/aux.h
- Timestamp:
- May 5, 2010, 4:35:03 PM (13 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 3510a61a2a6264c7487502f0c82c410e2f92369f
- Parents:
- 3bc01c780d4a0447782ed11242b0f51f4fda6f5f
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-05-05 16:35:03+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:51:40+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/aux.h
r3bc01c7 rdc093ce 1 /* -*-c++-*- */ 2 1 3 // MAX, MIN, BOOLEAN 4 5 /******************************************************************* 6 * File: aux.h 7 * Purpose: 8 * Author: 9 * Created: 10 * Version: $Id$ 11 *******************************************************************/ 12 13 #ifndef _MISC_AUX_H 14 15 16 #define TRUE 1 17 #define FALSE 0 18 19 #ifndef NULL 20 #define NULL (0) 21 #endif 22 23 // #ifdef _TRY 24 #ifndef ABS 25 #define ABS(x) ((x)<0?(-(x)):(x)) 26 #endif 27 // #endif 28 29 30 #if (SIZEOF_LONG == 8) 31 typedef int BOOLEAN; 32 /* testet on x86_64, gcc 3.4.6: 2 % */ 33 /* testet on IA64, gcc 3.4.6: 1 % */ 34 #else 35 /* testet on athlon, gcc 2.95.4: 1 % */ 36 typedef short BOOLEAN; 37 #endif 38 #define loop for(;;) 39 40 #if defined(SI_CPU_I386) || defined(SI_CPU_X86_64) 41 // the following settings seems to be better on i386 and x86_64 processors 42 // define if a*b is with mod instead of tables 43 #define HAVE_MULT_MOD 44 // #define HAVE_GENERIC_ADD 45 // #ifdef HAVE_MULT_MOD 46 // #define HAVE_DIV_MOD 47 // #endif 48 #elif defined(SI_CPU_IA64) 49 // the following settings seems to be better on itanium processors 50 // #define HAVE_MULT_MOD 51 #define HAVE_GENERIC_ADD 52 // #ifdef HAVE_MULT_MOD 53 // #define HAVE_DIV_MOD 54 // #endif 55 #elif defined(SI_CPU_SPARC) 56 // #define HAVE_GENERIC_ADD 57 #define HAVE_MULT_MOD 58 #ifdef HAVE_MULT_MOD 59 #define HAVE_DIV_MOD 60 #endif 61 #elif defined(SI_CPU_PPC) 62 // the following settings seems to be better on ppc processors 63 // testet on: ppc_Linux, 740/750 PowerMac G3, 512k L2 cache 64 #define HAVE_MULT_MOD 65 // #ifdef HAVE_MULT_MOD 66 // #define HAVE_DIV_MOD 67 // #endif 68 #endif 69 70 // static const int MAX_INT_VAL = ; 71 72 #endif /* _MISC_AUX_H */ 73
Note: See TracChangeset
for help on using the changeset viewer.