]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110489: Optimise math.ceil for known exact float (#108801)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Fri, 6 Oct 2023 22:57:18 +0000 (15:57 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 22:57:18 +0000 (22:57 +0000)
commitf013b475047b2e9d377feda9f2e16e5cdef824d7
tree5d3211d99197307353471c3cf5e700b6bef3e612
parent201dc11aeb4699de3c5ebaea9798796c30087bcc
gh-110489: Optimise math.ceil for known exact float (#108801)

This matches a similar optimisation done for math.floor in
https://github.com/python/cpython/pull/21072
Misc/NEWS.d/next/Core and Builtins/2023-10-06-22-30-25.gh-issue-110489.rI2n8A.rst [new file with mode: 0644]
Modules/mathmodule.c