FreeCalypso > hg > efr-experiments
comparison src/count.h @ 0:56410792419a
src: original EFR source from ETSI
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Wed, 03 Apr 2024 05:31:37 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:56410792419a |
|---|---|
| 1 /* Global counter variable for calculation of complexity weight */ | |
| 2 | |
| 3 typedef struct | |
| 4 { | |
| 5 Word32 add; /* Complexity Weight of 1 */ | |
| 6 Word32 sub; | |
| 7 Word32 abs_s; | |
| 8 Word32 shl; | |
| 9 Word32 shr; | |
| 10 Word32 extract_h; | |
| 11 Word32 extract_l; | |
| 12 Word32 mult; | |
| 13 Word32 L_mult; | |
| 14 Word32 negate; | |
| 15 Word32 round; | |
| 16 Word32 L_mac; | |
| 17 Word32 L_msu; | |
| 18 Word32 L_macNs; | |
| 19 Word32 L_msuNs; | |
| 20 Word32 L_add; /* Complexity Weight of 2 */ | |
| 21 Word32 L_sub; | |
| 22 Word32 L_add_c; | |
| 23 Word32 L_sub_c; | |
| 24 Word32 L_negate; | |
| 25 Word32 L_shl; | |
| 26 Word32 L_shr; | |
| 27 Word32 mult_r; | |
| 28 Word32 shr_r; | |
| 29 Word32 shift_r; | |
| 30 Word32 mac_r; | |
| 31 Word32 msu_r; | |
| 32 Word32 L_deposit_h; | |
| 33 Word32 L_deposit_l; | |
| 34 Word32 L_shr_r; /* Complexity Weight of 3 */ | |
| 35 Word32 L_shift_r; | |
| 36 Word32 L_abs; | |
| 37 Word32 L_sat; /* Complexity Weight of 4 */ | |
| 38 Word32 norm_s; /* Complexity Weight of 15 */ | |
| 39 Word32 div_s; /* Complexity Weight of 18 */ | |
| 40 Word32 norm_l; /* Complexity Weight of 30 */ | |
| 41 Word32 DataMove16; /* Complexity Weight of 1 */ | |
| 42 Word32 DataMove32; /* Complexity Weight of 2 */ | |
| 43 Word32 Logic16; /* Complexity Weight of 1 */ | |
| 44 Word32 Logic32; /* Complexity Weight of 2 */ | |
| 45 Word32 Test; /* Complexity Weight of 2 */ | |
| 46 } | |
| 47 BASIC_OP; | |
| 48 | |
| 49 Word32 TotalWeightedOperation (void); | |
| 50 Word32 DeltaWeightedOperation (void); | |
| 51 | |
| 52 void Init_WMOPS_counter (void); | |
| 53 void Reset_WMOPS_counter (void); | |
| 54 void WMOPS_output (Word16 dtx_mode); | |
| 55 Word32 fwc (void); | |
| 56 | |
| 57 void move16 (void); | |
| 58 void move32 (void); | |
| 59 void logic16 (void); | |
| 60 void logic32 (void); | |
| 61 void test (void); |
