| 346 | |
| 347 | |
| 348 | void RarVM::FilterItanium_SetBits(byte *Data,uint BitField,uint BitPos,uint BitCount) |
| 349 | { |
| 350 | uint InAddr=BitPos/8; |
| 351 | uint InBit=BitPos&7; |
| 352 | uint AndMask=0xffffffff>>(32-BitCount); |
| 353 | AndMask=~(AndMask<<InBit); |
| 354 | |
| 355 | BitField<<=InBit; |
| 356 | |
| 357 | for (uint I=0;I<4;I++) |
| 358 | { |
| 359 | Data[InAddr+I]&=AndMask; |
| 360 | Data[InAddr+I]|=BitField; |
| 361 | AndMask=(AndMask>>8)|0xff000000; |
| 362 | BitField>>=8; |
| 363 | } |
| 364 | } |
nothing calls this directly
no outgoing calls
no test coverage detected