00001 /* 00002 * Copyright (c) 2007-2008 ETH Zürich, Institute of Computational Science 00003 * 00004 * Permission is hereby granted, free of charge, to any person 00005 * obtaining a copy of this software and associated documentation 00006 * files (the "Software"), to deal in the Software without 00007 * restriction, including without limitation the rights to use, 00008 * copy, modify, merge, publish, distribute, sublicense, and/or sell 00009 * copies of the Software, and to permit persons to whom the 00010 * Software is furnished to do so, subject to the following 00011 * conditions: 00012 * 00013 * The above copyright notice and this permission notice shall be 00014 * included in all copies or substantial portions of the Software. 00015 * 00016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00017 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 00018 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00019 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00020 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00021 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00022 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00023 * OTHER DEALINGS IN THE SOFTWARE. 00024 */ 00025 00026 #ifndef SWPS3_H 00027 #define SWPS3_H 00028 00029 /* For DMA reasons this value needs to be a multiple of 16!!! */ 00030 #define MAX_SEQ_LENGTH (1024*10) 00031 #define MAX_SEQ_NAME_LENGTH (255) 00032 #define MATRIX_DIM ('Z'-'A'+1) 00033 #define __ALIGNED__ __attribute__((__aligned__(16))) 00034 00035 #ifdef __GNUC__ 00036 #define LIKELY(x) __builtin_expect((x),1) 00037 #define UNLIKELY(x) __builtin_expect((x),0) 00038 #define EXPORT __attribute__((visibility("default"))) 00039 #else 00040 #define LIKELY(x) (x) 00041 #define UNLIKELY(x) (x) 00042 #define EXPORT 00043 #endif 00044 00045 typedef enum{ 00046 SCALAR, 00047 SSE2, 00048 PS3, 00049 ALTIVEC 00050 } SWType; 00051 00052 typedef struct{ 00053 double gapOpen ; 00054 double gapExt ; 00055 double threshold ; 00056 } Options; 00057 00058 #endif /* SWPS3_H */