Reformat the codebase with the clang-format 18.

This commit is contained in:
guangli-dai
2025-06-13 12:31:12 -07:00
committed by Guangli Dai
parent a952a3b8b0
commit 6200e8987f
346 changed files with 18286 additions and 17770 deletions

View File

@@ -6,7 +6,7 @@
*/
void
sleep_ns(unsigned ns) {
assert(ns <= 1000*1000*1000);
assert(ns <= 1000 * 1000 * 1000);
#ifdef _WIN32
Sleep(ns / 1000 / 1000);
@@ -14,7 +14,7 @@ sleep_ns(unsigned ns) {
{
struct timespec timeout;
if (ns < 1000*1000*1000) {
if (ns < 1000 * 1000 * 1000) {
timeout.tv_sec = 0;
timeout.tv_nsec = ns;
} else {