[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/tossim sim_noise.c, 1.3,
1.4 sim_noise.h, 1.2, 1.3
Phil Levis
scipio at users.sourceforge.net
Sat Mar 31 17:52:15 PDT 2007
- Previous message: [Tinyos-2-commits]
CVS: tinyos-2.x/tos/lib/tossim CpmModelC.nc, NONE,
1.1 randomlib.c, NONE, 1.1 randomlib.h, NONE,
1.1 ActiveMessageC.nc, 1.4, 1.5 TOSSIM.py, 1.3,
1.4 hashtable.c, 1.2, 1.3 sim_gain.c, 1.3, 1.4 sim_log.c, 1.4,
1.5 sim_mac.c, 1.2, 1.3 sim_noise.c, 1.2, 1.3 sim_noise.h, 1.1,
1.2 sim_tossim.c, 1.4, 1.5 tossim.c, 1.4, 1.5 tossim.h, 1.4,
1.5 tossim.i, 1.3, 1.4 tossim_wrap.cxx, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/tossim
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5019
Modified Files:
sim_noise.c sim_noise.h
Log Message:
Trim the size down a bit.
Index: sim_noise.c
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/tossim/sim_noise.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** sim_noise.c 1 Apr 2007 00:29:34 -0000 1.3
--- sim_noise.c 1 Apr 2007 00:52:10 -0000 1.4
***************
*** 222,234 ****
void arrangeKey(uint16_t node_id)__attribute__ ((C, spontaneous))
{
- int i;
- char key[NOISE_HISTORY];
char *pKey = noiseData[node_id].key;
- for(i=0;i<NOISE_HISTORY-1; i++)
- {
- key[i] = pKey[i+1];
- }
- memcpy((void *)pKey, (void *)key, NOISE_HISTORY);
}
--- 222,228 ----
void arrangeKey(uint16_t node_id)__attribute__ ((C, spontaneous))
{
char *pKey = noiseData[node_id].key;
+ memcpy(pKey, pKey+1, NOISE_HISTORY-1);
}
Index: sim_noise.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/tossim/sim_noise.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sim_noise.h 1 Apr 2007 00:29:34 -0000 1.2
--- sim_noise.h 1 Apr 2007 00:52:10 -0000 1.3
***************
*** 42,47 ****
enum {
! NOISE_MIN = -120,
! NOISE_MAX = 10,
NOISE_MIN_QUANTIZE = -100,
NOISE_QUANTIZE_INTERVAL = 5,
--- 42,47 ----
enum {
! NOISE_MIN = -100,
! NOISE_MAX = -30,
NOISE_MIN_QUANTIZE = -100,
NOISE_QUANTIZE_INTERVAL = 5,
- Previous message: [Tinyos-2-commits]
CVS: tinyos-2.x/tos/lib/tossim CpmModelC.nc, NONE,
1.1 randomlib.c, NONE, 1.1 randomlib.h, NONE,
1.1 ActiveMessageC.nc, 1.4, 1.5 TOSSIM.py, 1.3,
1.4 hashtable.c, 1.2, 1.3 sim_gain.c, 1.3, 1.4 sim_log.c, 1.4,
1.5 sim_mac.c, 1.2, 1.3 sim_noise.c, 1.2, 1.3 sim_noise.h, 1.1,
1.2 sim_tossim.c, 1.4, 1.5 tossim.c, 1.4, 1.5 tossim.h, 1.4,
1.5 tossim.i, 1.3, 1.4 tossim_wrap.cxx, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list