src/gui/painting/qdrawhelper_p.h
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
  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;