00001 00005 /* 00006 * Copyright (c) 2007-2008 ETH Zürich, Institute of Computational Science 00007 * 00008 * Permission is hereby granted, free of charge, to any person 00009 * obtaining a copy of this software and associated documentation 00010 * files (the "Software"), to deal in the Software without 00011 * restriction, including without limitation the rights to use, 00012 * copy, modify, merge, publish, distribute, sublicense, and/or sell 00013 * copies of the Software, and to permit persons to whom the 00014 * Software is furnished to do so, subject to the following 00015 * conditions: 00016 * 00017 * The above copyright notice and this permission notice shall be 00018 * included in all copies or substantial portions of the Software. 00019 * 00020 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00021 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 00022 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00023 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00024 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00025 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 00026 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 00027 * OTHER DEALINGS IN THE SOFTWARE. 00028 */ 00029 00030 #ifndef DYNPROGR_SPE_FUNCTIONS_H 00031 #define DYNPROGR_SPE_FUNCTIONS_H 00032 #include <spu_mfcio.h> 00033 #include "DynProgr_SPE.h" 00034 #define SPU 00035 00036 /* Define the global data */ 00037 /**************************/ 00038 extern char * s1 , 00039 * s2 ; 00040 extern int ls1 , 00041 ls2 ; 00042 extern int blockStart , 00043 blockSize ; 00044 extern int maxDbLen ; 00045 extern double mn , 00046 mx , 00047 fixedDel , 00048 incDel ; 00049 extern void *simi , 00050 *profile , 00051 *loadOpt , 00052 *storeOpt , 00053 *rD , 00054 *maxS , 00055 *delS ; 00056 extern ppu_addr_t remote_profile ; 00057 00058 #ifdef __cplusplus 00059 extern "C" { 00060 #endif 00061 00062 typedef double(*dvf_t)(void); 00063 typedef void(*vvf_t)(void); 00064 extern dvf_t dynProgLocal[]; 00065 extern vvf_t createProfile[]; 00066 00067 #ifdef __cplusplus 00068 } 00069 #endif 00070 #endif