8000 gh-111662: Update socket module to use AC for optimizing performance by wrongnull · Pull Request #111661 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111662: Update socket module to use AC for optimizing performance #111661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove bitwise=True from clinic converter
  • Loading branch information
wrongnull committed Nov 4, 2023
commit bc6733b691db22587ac852ba2bdb4ca11d61a9ff
11 changes: 4 additions & 7 deletions Modules/clinic/socketmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Modules/socketmodule.c
4CD5
Original file line number Diff line number Diff line change
Expand Up @@ -6362,15 +6362,15 @@ _socket_socket_ntohs_impl(PySocketSockObject *self, int x)

/*[clinic input]
_socket.socket.ntohl
x: unsigned_long(bitwise=True)
x: unsigned_long
/

Convert a 32-bit integer from network to host byte order.
[clinic start generated code]*/

static PyObject *
_socket_socket_ntohl_impl(PySocketSockObject *self, unsigned long x)
/*[clinic end generated code: output=88e46cad3e45c65c input=02a9a0c0ad14a079]*/
/*[clinic end generated code: output=88e46cad3e45c65c input=862d49375611e718]*/
{
#if SIZEOF_LONG > 4
{
Expand Down Expand Up @@ -6417,15 +6417,15 @@ _socket_socket_htons_impl(PySocketSockObject *self, int x)

/*[clinic input]
_socket.socket.htonl
x: unsigned_long(bitwise=True)
x: unsigned_long
/

Convert a 32-bit integer from host to network byte order.
[clinic start generated code]*/

static PyObject *
_socket_socket_htonl_impl(PySocketSockObject *self, unsigned long x)
/*[clinic end generated code: output=04a88551f090913e input=e356f217ac56bef5]*/
/*[clinic end generated code: output=04a88551f090913e input=0b263bade5b54efc]*/
{
#if SIZEOF_LONG > 4
{
Expand Down
0