Changeset 26195 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 3, 2010 2:32:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/ATAController.cpp
r26104 r26195 647 647 } 648 648 649 static uint32_t ataChecksum(void* ptr, size_t count) 650 { 651 uint8_t u8Sum = 0xa5, *p = (uint8_t*)ptr; 649 static uint32_t ataChecksum(void *ptr, size_t count) 650 { 651 uint8_t u8Sum = 0xa5; 652 uint8_t *p = (uint8_t*)ptr; 652 653 size_t i; 653 654 654 655 for (i = 0; i < count; i++) 655 656 { 656 u8Sum += *p++;657 u8Sum += *p++; 657 658 } 658 659
Note:
See TracChangeset
for help on using the changeset viewer.