Home | Develop | Download | Contact
pdscmfunctions.h
1 /*
2  * pdscmfunctions.h
3  *
4  * Copyright 2011 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
29 #ifndef __PDSCMFUNCTIONS_H__
30 #define __PDSCMFUNCTIONS_H__
31 
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #include <pds/pdscmglobal.h>
38 #include <pds/pdsvector.h>
39 #include <pds/pdsbvector.h>
40 
41 #ifndef TRUE
42  #define TRUE 1
43 #endif
44 
45 #ifndef FALSE
46  #define FALSE 0
47 #endif
48 
63 int pds_vector_hard_decision(PdsBVector *BVector1,const PdsVector *Vector2, PdsCmReal D);
64 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* __PDSCMFUNCTIONS_H__ */
float PdsCmReal
Definition: pdscmglobal.h:46
int pds_vector_hard_decision(PdsBVector *BVector1, const PdsVector *Vector2, PdsCmReal D)
Aplica una hard decision sobre el vector Vector2 con limear en D y lo carga en BVector1. Todo valor mayor o igual a D es considerado un bit 1, caso contrario se considera un bit 0.

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed