aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-02-13 10:55:28 -0600
committerGitHub <noreply@github.com>2024-02-13 10:55:28 -0600
commit1dacfd119071af50eaef21a97a46076ee6ff20fd (patch)
treebacdd41a842972bf87b30b050c1bf0da8ef52f03 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
parentd79c3c50c45f2bd0acc0269dbedde9ddeed2d50e (diff)
downloadllvm-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