equal
deleted
inserted
replaced
1547 } |
1547 } |
1548 |
1548 |
1549 template <class T> |
1549 template <class T> |
1550 inline void qt_memfill(T *dest, T value, int count) |
1550 inline void qt_memfill(T *dest, T value, int count) |
1551 { |
1551 { |
|
1552 if (!count) |
|
1553 return; |
|
1554 |
1552 int n = (count + 7) / 8; |
1555 int n = (count + 7) / 8; |
1553 switch (count & 0x07) |
1556 switch (count & 0x07) |
1554 { |
1557 { |
1555 case 0: do { *dest++ = value; |
1558 case 0: do { *dest++ = value; |
1556 case 7: *dest++ = value; |
1559 case 7: *dest++ = value; |