[issue40302] Add _Py_bswap32() function to pyport.h

STINNER Victor report at bugs.python.org
Thu Apr 16 10:22:55 EDT 2020


New submission from STINNER Victor <vstinner at python.org>:

There are multiple files which have to swap bytes. I propose to add functions for that:

* _Py_bswap16(): uint16_t
* _Py_bswap32(): uint32_t
* _Py_bswap64(): uint64_t

----------
components: Interpreter Core
messages: 366600
nosy: vstinner
priority: normal
severity: normal
status: open
title: Add _Py_bswap32() function to pyport.h
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40302>
_______________________________________


More information about the Python-bugs-list mailing list