diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-27 21:59:28 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-30 23:40:37 +0100 |
commit | 6f217e7ce5f1a0db1b3d31a23efa6a2af8acfecb (patch) | |
tree | ca6d95ad44fb44fd13adca5ae942781fad3f134f /src/node_http2.cc | |
parent | 23d51a1f0858f41c9632d87d1e4a611ddcc051e6 (diff) | |
download | android-node-v8-6f217e7ce5f1a0db1b3d31a23efa6a2af8acfecb.tar.gz android-node-v8-6f217e7ce5f1a0db1b3d31a23efa6a2af8acfecb.tar.bz2 android-node-v8-6f217e7ce5f1a0db1b3d31a23efa6a2af8acfecb.zip |
src: turn ROUND_UP into an inline function
PR-URL: https://github.com/nodejs/node/pull/25743
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/node_http2.cc')
-rw-r--r-- | src/node_http2.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc index 5b172dfee7..4e19432efb 100644 --- a/src/node_http2.cc +++ b/src/node_http2.cc @@ -382,7 +382,7 @@ Headers::Headers(Isolate* isolate, header_string_len); // Make sure the start address is aligned appropriately for an nghttp2_nv*. char* start = reinterpret_cast<char*>( - ROUND_UP(reinterpret_cast<uintptr_t>(*buf_), alignof(nghttp2_nv))); + RoundUp(reinterpret_cast<uintptr_t>(*buf_), alignof(nghttp2_nv))); char* header_contents = start + (count_ * sizeof(nghttp2_nv)); nghttp2_nv* const nva = reinterpret_cast<nghttp2_nv*>(start); @@ -438,8 +438,8 @@ Origins::Origins(Isolate* isolate, // Make sure the start address is aligned appropriately for an nghttp2_nv*. char* start = reinterpret_cast<char*>( - ROUND_UP(reinterpret_cast<uintptr_t>(*buf_), - alignof(nghttp2_origin_entry))); + RoundUp(reinterpret_cast<uintptr_t>(*buf_), + alignof(nghttp2_origin_entry))); char* origin_contents = start + (count_ * sizeof(nghttp2_origin_entry)); nghttp2_origin_entry* const nva = reinterpret_cast<nghttp2_origin_entry*>(start); |