Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Oct 1, 2021

Add a private C API for deadlines: add _PyDeadline_Init() and
_PyDeadline_Get() functions.

Add also the _PyTime_Add() function which clamps the result on overflow.

https://bugs.python.org/issue41710

Add a private C API for deadlines: add _PyDeadline_Init() and
_PyDeadline_Get() functions.

* Add _PyTime_Add() and _PyTime_Mul() functions which compute t1+t2
  and t1*t2 and clamp the result on overflow.
* _PyTime_MulDiv() now uses _PyTime_Add() and _PyTime_Mul().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants