kernel/eka/euser/us_func.cpp
changeset 293 0659d0e1a03c
parent 275 2b433474f2ba
child 300 1d28c8722707
equal deleted inserted replaced
291:206a6eaaeb71 293:0659d0e1a03c
  2018 	};
  2018 	};
  2019 
  2019 
  2020 /* RVCT 3.1 and 4.0 read past the end of arrays when unrolling loops.
  2020 /* RVCT 3.1 and 4.0 read past the end of arrays when unrolling loops.
  2021  * This only happens when using -O3 -Otime, so force to -O2.
  2021  * This only happens when using -O3 -Otime, so force to -O2.
  2022  */
  2022  */
       
  2023 #if __ARMCC_VERSION >= 310000 
  2023 #pragma push
  2024 #pragma push
  2024 #pragma O2
  2025 #pragma O2
       
  2026 #endif
  2025 
  2027 
  2026 /**
  2028 /**
  2027 Performs a CCITT CRC-32 checksum on the specified data.
  2029 Performs a CCITT CRC-32 checksum on the specified data.
  2028 
  2030 
  2029 On return from this function, the referenced 32 bit integer contains the CRC
  2031 On return from this function, the referenced 32 bit integer contains the CRC
  2040 	TUint32 crc = aCrc;
  2042 	TUint32 crc = aCrc;
  2041 	while (p < q)
  2043 	while (p < q)
  2042 		crc = (crc >> 8) ^ CrcTab32[(crc ^ *p++) & 0xff];
  2044 		crc = (crc >> 8) ^ CrcTab32[(crc ^ *p++) & 0xff];
  2043 	aCrc = crc;
  2045 	aCrc = crc;
  2044 	}
  2046 	}
       
  2047 #if __ARMCC_VERSION >= 310000 
  2045 #pragma pop
  2048 #pragma pop
       
  2049 #endif