Skip to content
Snippets Groups Projects
Commit fdd8cf0e authored by Alban Gruin's avatar Alban Gruin Committed by Alban Gruin
Browse files

kernel, sequential: patch sources

parent 11cfbda4
Branches
No related tags found
No related merge requests found
Showing
with 40 additions and 0 deletions
...@@ -147,10 +147,12 @@ void _Pragma( "entrypoint" ) binarysearch_main( void ) ...@@ -147,10 +147,12 @@ void _Pragma( "entrypoint" ) binarysearch_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
binarysearch_init(); binarysearch_init();
binarysearch_main(); binarysearch_main();
siccsrs();
return ( binarysearch_return() - ( -1 ) != 0 ); return ( binarysearch_return() - ( -1 ) != 0 );
} }
...@@ -137,10 +137,12 @@ void _Pragma( "entrypoint" ) bitcount_main() ...@@ -137,10 +137,12 @@ void _Pragma( "entrypoint" ) bitcount_main()
_Pragma( "flowrestriction 1*btbl_bitcount <= 4*call_btbl" ) _Pragma( "flowrestriction 1*btbl_bitcount <= 4*call_btbl" )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
bitcount_init(); bitcount_init();
bitcount_main(); bitcount_main();
siccsrs();
return ( bitcount_return() ); return ( bitcount_return() );
} }
...@@ -148,10 +148,12 @@ void _Pragma ( "entrypoint" ) bitonic_main( void ) ...@@ -148,10 +148,12 @@ void _Pragma ( "entrypoint" ) bitonic_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
bitonic_init(); bitonic_init();
bitonic_main(); bitonic_main();
siccsrs();
return ( bitonic_return() ); return ( bitonic_return() );
} }
...@@ -119,6 +119,7 @@ void _Pragma( "entrypoint" ) bsort_main( void ) ...@@ -119,6 +119,7 @@ void _Pragma( "entrypoint" ) bsort_main( void )
} }
#include <siccsrs.h>
/* /*
Main function Main function
*/ */
...@@ -128,5 +129,6 @@ int main( void ) ...@@ -128,5 +129,6 @@ int main( void )
bsort_init(); bsort_init();
bsort_main(); bsort_main();
siccsrs();
return bsort_return(); return bsort_return();
} }
...@@ -126,11 +126,13 @@ void _Pragma( "entrypoint" ) complex_updates_main( void ) ...@@ -126,11 +126,13 @@ void _Pragma( "entrypoint" ) complex_updates_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
complex_updates_init(); complex_updates_init();
complex_updates_main(); complex_updates_main();
siccsrs();
return complex_updates_return(); return complex_updates_return();
} }
...@@ -77,10 +77,12 @@ void _Pragma( "entrypoint" ) cosf_main( void ) ...@@ -77,10 +77,12 @@ void _Pragma( "entrypoint" ) cosf_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
cosf_init(); cosf_init();
cosf_main(); cosf_main();
siccsrs();
return cosf_return(); return cosf_return();
} }
...@@ -131,10 +131,12 @@ void _Pragma( "entrypoint" ) countnegative_main ( void ) ...@@ -131,10 +131,12 @@ void _Pragma( "entrypoint" ) countnegative_main ( void )
countnegative_sum( countnegative_array ); countnegative_sum( countnegative_array );
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
countnegative_init(); countnegative_init();
countnegative_main(); countnegative_main();
siccsrs();
return ( countnegative_return() ); return ( countnegative_return() );
} }
...@@ -148,9 +148,11 @@ void cubic_solveCubic( float a, float b, float c, float d, ...@@ -148,9 +148,11 @@ void cubic_solveCubic( float a, float b, float c, float d,
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
cubic_init(); cubic_init();
cubic_main(); cubic_main();
siccsrs();
return cubic_return(); return cubic_return();
} }
...@@ -82,9 +82,11 @@ void _Pragma( "entrypoint" ) deg2rad_main( void ) ...@@ -82,9 +82,11 @@ void _Pragma( "entrypoint" ) deg2rad_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
deg2rad_init(); deg2rad_init();
deg2rad_main(); deg2rad_main();
siccsrs();
return deg2rad_return(); return deg2rad_return();
} }
...@@ -87,11 +87,13 @@ void _Pragma( "entrypoint" ) fac_main () ...@@ -87,11 +87,13 @@ void _Pragma( "entrypoint" ) fac_main ()
} }
#include <siccsrs.h>
int main ( void ) int main ( void )
{ {
fac_init(); fac_init();
fac_main(); fac_main();
siccsrs();
return ( fac_return() ); return ( fac_return() );
} }
...@@ -323,11 +323,13 @@ void _Pragma( "entrypoint" ) fft_main( void ) ...@@ -323,11 +323,13 @@ void _Pragma( "entrypoint" ) fft_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
fft_init(); fft_init();
fft_main(); fft_main();
siccsrs();
return fft_return(); return fft_return();
} }
...@@ -157,6 +157,7 @@ void filterbank_core( float r[ 256 ], ...@@ -157,6 +157,7 @@ void filterbank_core( float r[ 256 ],
} }
#include <siccsrs.h>
/* /*
Main function Main function
*/ */
...@@ -166,5 +167,6 @@ int main( void ) ...@@ -166,5 +167,6 @@ int main( void )
filterbank_init(); filterbank_init();
filterbank_main(); filterbank_main();
siccsrs();
return filterbank_return(); return filterbank_return();
} }
...@@ -189,11 +189,13 @@ void _Pragma( "entrypoint" ) fir2dim_main() ...@@ -189,11 +189,13 @@ void _Pragma( "entrypoint" ) fir2dim_main()
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
fir2dim_init(); fir2dim_init();
fir2dim_main(); fir2dim_main();
siccsrs();
return ( fir2dim_return() ); return ( fir2dim_return() );
} }
...@@ -154,10 +154,12 @@ void _Pragma( "entrypoint" ) iir_main( void ) ...@@ -154,10 +154,12 @@ void _Pragma( "entrypoint" ) iir_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
iir_init(); iir_init();
iir_main(); iir_main();
siccsrs();
return ( iir_return() - 400 != 0 ); return ( iir_return() - 400 != 0 );
} }
...@@ -130,10 +130,12 @@ void _Pragma( "entrypoint" ) insertsort_main() ...@@ -130,10 +130,12 @@ void _Pragma( "entrypoint" ) insertsort_main()
insertsort_max_i = insertsort_iters_i; insertsort_max_i = insertsort_iters_i;
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
insertsort_init(); insertsort_init();
insertsort_main(); insertsort_main();
siccsrs();
return ( insertsort_return() ); return ( insertsort_return() );
} }
...@@ -147,10 +147,12 @@ void _Pragma( "entrypoint" ) isqrt_main( void ) ...@@ -147,10 +147,12 @@ void _Pragma( "entrypoint" ) isqrt_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
isqrt_init(); isqrt_init();
isqrt_main(); isqrt_main();
siccsrs();
return isqrt_return(); return isqrt_return();
} }
...@@ -310,10 +310,12 @@ void _Pragma ( "entrypoint" ) jfdctint_main( void ) ...@@ -310,10 +310,12 @@ void _Pragma ( "entrypoint" ) jfdctint_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
jfdctint_init(); jfdctint_init();
jfdctint_main(); jfdctint_main();
siccsrs();
return ( jfdctint_return() ); return ( jfdctint_return() );
} }
...@@ -168,10 +168,12 @@ void _Pragma( "entrypoint" ) ludcmp_main( void ) ...@@ -168,10 +168,12 @@ void _Pragma( "entrypoint" ) ludcmp_main( void )
ludcmp_chkerr = ludcmp_test( n, eps ); ludcmp_chkerr = ludcmp_test( n, eps );
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
ludcmp_init(); ludcmp_init();
ludcmp_main(); ludcmp_main();
siccsrs();
return ( ludcmp_return() ); return ( ludcmp_return() );
} }
...@@ -160,10 +160,12 @@ void _Pragma ( "entrypoint" ) matrix1_main( void ) ...@@ -160,10 +160,12 @@ void _Pragma ( "entrypoint" ) matrix1_main( void )
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
matrix1_init(); matrix1_init();
matrix1_main(); matrix1_main();
siccsrs();
return matrix1_return(); return matrix1_return();
} }
...@@ -622,11 +622,13 @@ void _Pragma( "entrypoint" ) md5_main( void ) ...@@ -622,11 +622,13 @@ void _Pragma( "entrypoint" ) md5_main( void )
md5_bytesNeeded = randomStruct.bytesNeeded + randomStruct2.bytesNeeded; md5_bytesNeeded = randomStruct.bytesNeeded + randomStruct2.bytesNeeded;
} }
#include <siccsrs.h>
int main( void ) int main( void )
{ {
md5_init(); md5_init();
md5_main(); md5_main();
// printf("%d\n", ret); // printf("%d\n", ret);
siccsrs();
return md5_return(); return md5_return();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment