more consistent formatting of for/while loops and if statements

This commit is contained in:
Axel Kohlmeyer
2020-12-30 09:01:37 -05:00
parent eef28b58ab
commit 382ade15fe
345 changed files with 4259 additions and 4259 deletions

View File

@ -327,13 +327,13 @@ uint32_t LAMMPS_NS::hashlittle(const void *key, size_t length, uint32_t initval)
h = 0;
for (p = (uint32_t *)key, bytes=num_bytes;
bytes >= (uint32_t) sizeof(uint32_t);
bytes-=sizeof(uint32_t), p++){
bytes-=sizeof(uint32_t), p++) {
h = (h^(*p))*MAXINT_DIV_PHI;
}
/* Then take care of the remaining bytes, if any */
rest = 0;
for (byteptr = (char *)p; bytes > 0; bytes--, byteptr++){
for (byteptr = (char *)p; bytes > 0; bytes--, byteptr++) {
rest = (rest<<8) | (*byteptr);
}