src: get rid of fp arithmetic in ParseIPv4Host · nodejs/node@1508d90 · GitHub
Skip to content

Commit 1508d90

Browse files
tniessenjuanarbol
authored andcommitted
src: get rid of fp arithmetic in ParseIPv4Host
Even though most compiler should not actually emit FPU instructions, it is unnecessary to use floating-point arithmetic for powers of 2. Also change some signed counters to unsigned integers. PR-URL: #46326 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 110ead9 commit 1508d90

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

src/node_url.cc

Lines changed: 7 additions & 12 deletions

0 commit comments

Comments
 (0)