Lines Matching refs:idx
63 getWeightByte(uint32_t weight, int32_t idx) {
64 return getWeightTrail(weight, idx); /* same calculation */
68 setWeightByte(uint32_t weight, int32_t idx, uint32_t byte) {
71 idx*=8;
72 if(idx<32) {
73 mask=((uint32_t)0xffffffff)>>idx;
86 idx=32-idx;
87 mask|=0xffffff00<<idx;
88 return (uint32_t)((weight&mask)|(byte<<idx));