Changeset 26049 in vbox
- Timestamp:
- Jan 26, 2010 2:31:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r26001 r26049 1148 1148 } 1149 1149 1150 static uint32_t ataChecksum(void* p , size_t count)1151 { 1152 uint8_t sum = 0xa5, *pp = (uint8_t*)p;1150 static uint32_t ataChecksum(void* ptr, size_t count) 1151 { 1152 uint8_t u8Sum = 0xa5, *p = (uint8_t*)ptr; 1153 1153 size_t i; 1154 1154 1155 1155 for (i = 0; i < count; i++) 1156 1156 { 1157 sum += pp[i]; 1158 count--; 1159 } 1160 1161 return (uint8_t)-(int32_t)sum; 1157 u8Sum += *p++; 1158 } 1159 1160 return (uint8_t)-(int32_t)u8Sum; 1162 1161 } 1163 1162
Note:
See TracChangeset
for help on using the changeset viewer.