mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +00:00
Improve performance of printf functions
This commit is contained in:
parent
b107d2709f
commit
dc6d11a031
39 changed files with 577 additions and 650 deletions
|
@ -20,7 +20,10 @@
|
|||
|
||||
/**
|
||||
* Returns true if IPv4 address can come from the Internet.
|
||||
*
|
||||
* We intentionally omit TEST-NET here which can be used to simulate
|
||||
* public Internet traffic using non-Internet IPs.
|
||||
*/
|
||||
bool IsPublicIp(uint32_t x) {
|
||||
return !IsLoopbackIp(x) && !IsPrivateIp(x) && !IsTestnetIp(x);
|
||||
return !IsLoopbackIp(x) && !IsPrivateIp(x);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue