@@ -13,17 +13,17 @@ static void empty_function() {}
1313
1414static void full_thread_function ()
1515{
16- microthread::create ([](int , int , int ) { /* ... */ }, 1 , 2 , 3 );
16+ // microthread::create([](int, int, int) { /* ... */ }, 1, 2, 3);
1717}
1818
1919static void oneshot_thread_function ()
2020{
21- microthread::oneshot ([](int , int , int ) { /* ... */ }, 1 , 2 , 3 );
21+ // microthread::oneshot([](int, int, int) { /* ... */ }, 1, 2, 3);
2222}
2323
2424static void direct_thread_function ()
2525{
26- microthread::direct ([] { /* ... */ });
26+ // microthread::direct([] { /* ... */ });
2727}
2828
2929static void opaque_dyncall_handler ()
@@ -49,24 +49,10 @@ PUBLIC(void public_donothing())
4949 /* nothing */
5050}
5151
52- inline void * sys_memset (void * vdest, const int ch, std::size_t size)
53- {
54- register char * a0 asm (" a0" ) = (char *)vdest;
55- register int a1 asm (" a1" ) = ch;
56- register size_t a2 asm (" a2" ) = size;
57- register long syscall_id asm (" a7" ) = SYSCALL_MEMSET;
58-
59- asm volatile (" ecall"
60- : " =m" (*(char (*)[size]) a0)
61- : " r" (a0), " r" (a1), " r" (a2), " r" (syscall_id));
62- return vdest;
63- }
64-
6552static void bench_alloc_free ()
6653{
6754 auto x = std::make_unique_for_overwrite<char []>(1024 );
6855 __asm__ (" " :: " m" (x[0 ]) : " memory" );
69- // sys_memset(x.get(), 0, 1024);
7056}
7157
7258PUBLIC (void benchmarks ())
0 commit comments