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
Revert "remove bitwise=True from clinic converter"
This reverts commit bc6733b.
  • Loading branch information
wrongnull committed Nov 6, 2023
commit a27a86d587d2768c833ed53f4b205ec6354ee4f2
11 changes: 7 additions & 4 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
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
x: unsigned_long(bitwise=True)
/

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=862d49375611e718]*/
/*[clinic end generated code: output=88e46cad3e45c65c input=02a9a0c0ad14a079]*/
{
#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
x: unsigned_long(bitwise=True)
/

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=0b263bade5b54efc]*/
/*[clinic end generated code: output=04a88551f090913e input=e356f217ac56bef5]*/
{
#if SIZEOF_LONG > 4
{
Expand Down
0