diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-02-13 10:55:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 10:55:28 -0600 |
commit | 1dacfd119071af50eaef21a97a46076ee6ff20fd (patch) | |
tree | bacdd41a842972bf87b30b050c1bf0da8ef52f03 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | d79c3c50c45f2bd0acc0269dbedde9ddeed2d50e (diff) | |
download | llvm-1dacfd119071af50eaef21a97a46076ee6ff20fd.zip llvm-1dacfd119071af50eaef21a97a46076ee6ff20fd.tar.gz llvm-1dacfd119071af50eaef21a97a46076ee6ff20fd.tar.bz2 |
[libc] Round up time for GPU nanosleep implementation (#81630)
Summary:
The GPU `nanosleep` tests would occasionally fail. This was due to the
fact that we used integer division to determine how many ticks we had to
sleep for. This would then truncate, leaving us with a value just
slightly below the requested value. This would then occasionally leave
us with a return value of `-1`. This patch just changes the code to
round up by 1 so we always sleep for at least the requested value.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions