retrieval of estimated frequencies for a symbol */ sym symbol for which data is desired; must be <n */ sy_f frequency of that symbol */ lt_f frequency of all smaller symbols together */ the total frequency is 1<<LG_TOTF */
| 210 | /* lt_f frequency of all smaller symbols together */ |
| 211 | /* the total frequency is 1<<LG_TOTF */ |
| 212 | void RangeModel::getfreq(U32 sym, U32 *sy_f, U32 *lt_f ) |
| 213 | { |
| 214 | *sy_f = cf[sym+1] - (*lt_f = cf[sym]); |
| 215 | } |
| 216 | |
| 217 | /* find out symbol for a given cumulative frequency */ |
| 218 | /* lt_f cumulative frequency */ |
no outgoing calls
no test coverage detected