bpo-38015: replace inline function `is_small_int` with a macro version · Pull Request #15710 · python/cpython
Conversation
There is an unnecessary type casting (to long long), may slightly reduce performance:
static inline int is_small_int(long long ival) { return -NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS; }
There is an unnecessary type casting (to long long), may slightly reduce performance:
static inline int
is_small_int(long long ival)
{
return -NSMALLNEGINTS <= ival && ival < NSMALLPOSINTS;
}
ghost
deleted the
small_int_macro
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters