-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
791470f
commit 499e10d
Showing
16 changed files
with
156 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
Copyright (C) 2023 Albin Ahlbäck | ||
This file is part of FLINT. | ||
FLINT is free software: you can redistribute it and/or modify it under | ||
the terms of the GNU Lesser General Public License (LGPL) as published | ||
by the Free Software Foundation; either version 2.1 of the License, or | ||
(at your option) any later version. See <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* Include functions *********************************************************/ | ||
|
||
#include "t-add_ssaaaa.c" | ||
#include "t-add_sssaaaaaa.c" | ||
#include "t-add_ssssaaaaaaaa.c" | ||
#include "t-byte_swap.c" | ||
#include "t-flint_clz.c" | ||
#include "t-flint_ctz.c" | ||
#include "t-invert_limb.c" | ||
#include "t-sdiv_qrnnd.c" | ||
#include "t-smul_ppmm.c" | ||
#include "t-sub_dddmmmsss.c" | ||
#include "t-sub_ddmmss.c" | ||
#include "t-udiv_qrnnd.c" | ||
#include "t-udiv_qrnnd_preinv.c" | ||
#include "t-umul_ppmm.c" | ||
|
||
/* Array of test functions ***************************************************/ | ||
|
||
int (*test_functions[])(void) = | ||
{ | ||
TEST_FUNCTION(add_ssaaaa), | ||
TEST_FUNCTION(add_sssaaaaaa), | ||
TEST_FUNCTION(add_ssssaaaaaaaa), | ||
TEST_FUNCTION(byte_swap), | ||
TEST_FUNCTION(flint_clz), | ||
TEST_FUNCTION(flint_ctz), | ||
TEST_FUNCTION(invert_limb), | ||
TEST_FUNCTION(sdiv_qrnnd), | ||
TEST_FUNCTION(smul_ppmm), | ||
TEST_FUNCTION(sub_dddmmmsss), | ||
TEST_FUNCTION(sub_ddmmss), | ||
TEST_FUNCTION(udiv_qrnnd), | ||
TEST_FUNCTION(udiv_qrnnd_preinv), | ||
TEST_FUNCTION(umul_ppmm) | ||
}; | ||
|
||
/* main function *************************************************************/ | ||
|
||
int | ||
main() | ||
{ | ||
slong ix; | ||
|
||
for (ix = 0; ix < sizeof(test_functions) / sizeof(int (*)(void)); ix++) | ||
if (test_functions[ix]()) | ||
flint_abort(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.