Mercurial > hg > nginx-quic
comparison src/core/ngx_slab.c @ 6807:ea76a3aa18ae
Slab: style.
Removed redundant parentheses. No functional changes.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Sat, 03 Dec 2016 09:55:40 +0300 |
parents | f01ab2dbcfdc |
children | 2af776c22aec |
comparison
equal
deleted
inserted
replaced
6806:75dbab4ea930 | 6807:ea76a3aa18ae |
---|---|
209 for (n = 0; n < map; n++) { | 209 for (n = 0; n < map; n++) { |
210 | 210 |
211 if (bitmap[n] != NGX_SLAB_BUSY) { | 211 if (bitmap[n] != NGX_SLAB_BUSY) { |
212 | 212 |
213 for (m = 1, i = 0; m; m <<= 1, i++) { | 213 for (m = 1, i = 0; m; m <<= 1, i++) { |
214 if ((bitmap[n] & m)) { | 214 if (bitmap[n] & m) { |
215 continue; | 215 continue; |
216 } | 216 } |
217 | 217 |
218 bitmap[n] |= m; | 218 bitmap[n] |= m; |
219 | 219 |
253 | 253 |
254 do { | 254 do { |
255 if (page->slab != NGX_SLAB_BUSY) { | 255 if (page->slab != NGX_SLAB_BUSY) { |
256 | 256 |
257 for (m = 1, i = 0; m; m <<= 1, i++) { | 257 for (m = 1, i = 0; m; m <<= 1, i++) { |
258 if ((page->slab & m)) { | 258 if (page->slab & m) { |
259 continue; | 259 continue; |
260 } | 260 } |
261 | 261 |
262 page->slab |= m; | 262 page->slab |= m; |
263 | 263 |
295 | 295 |
296 for (m = (uintptr_t) 1 << NGX_SLAB_MAP_SHIFT, i = 0; | 296 for (m = (uintptr_t) 1 << NGX_SLAB_MAP_SHIFT, i = 0; |
297 m & mask; | 297 m & mask; |
298 m <<= 1, i++) | 298 m <<= 1, i++) |
299 { | 299 { |
300 if ((page->slab & m)) { | 300 if (page->slab & m) { |
301 continue; | 301 continue; |
302 } | 302 } |
303 | 303 |
304 page->slab |= m; | 304 page->slab |= m; |
305 | 305 |