Skip to content

Commit

Permalink
Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
0152la committed Apr 9, 2024
1 parent b16aff7 commit d5bf99d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hybrid/threads_ddc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
* The number of threads to execute can be changed by modifying `t_count`.
***/

#include <math.h>
#include <pthread.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#include "cheriintrin.h"

#include "./include/utils.h"
#include "../include/common.h"
#include "./include/utils.h"

struct t_info
{
Expand All @@ -32,7 +32,9 @@ void *run_thread(void *curr_t_info_ptr)
cheri_address_set(cheri_ddc_get(), (intptr_t) curr_t_info->addr_in);
write_ddc(new_ddc);
// Force wait to ensure threads don't die too fast
for (size_t i = 0; i < pow(10, 6); ++i) { };
for (size_t i = 0; i < pow(10, 6); ++i)
{
};
curr_t_info->ddc_out = read_ddc();
return NULL;
}
Expand Down

0 comments on commit d5bf99d

Please sign in to comment.