diff options
author | David Timber <mieabby@gmail.com> | 2020-08-10 19:25:43 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-08-11 11:01:49 +0930 |
commit | d7cc11191dfd3fead5e596fcbc24f40d1317819e (patch) | |
tree | 4f52b450bf499fe6721a944f2e9cd41cb1e17828 /src/proone-arch-test.c | |
parent | 195946d11f8a7870b435e0eba32f2299aa1b96a1 (diff) |
Build system change, bugfix ...
* Workaround for a bug where getrandom() call block within mbedtls
* Remove use of undocumented autoconf feature: pkg-config
* Remove proone-arch-test
Diffstat (limited to 'src/proone-arch-test.c')
-rw-r--r-- | src/proone-arch-test.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/proone-arch-test.c b/src/proone-arch-test.c deleted file mode 100644 index 8390ca8..0000000 --- a/src/proone-arch-test.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <stdio.h> -#include <math.h> - -#include "protocol.h" -#include "config.h" - - -int main (void) { - int exit_code; - volatile double mat[9] = { - 1, 0, 0, - 0, 1, 0, - 0, 0, 1 - }; - volatile double arr[3] = { - 1, 2, 3 - }; - volatile double d; - - arr[0] = arr[0] * mat[0] + arr[1] * mat[1] + arr[2] * mat[2]; - arr[1] = arr[0] * mat[3] + arr[1] * mat[4] + arr[2] * mat[5]; - arr[2] = arr[0] * mat[6] + arr[1] * mat[7] + arr[2] * mat[8]; - d = arr[0] + arr[1] + arr[2]; - - exit_code = isnan(d) ? 1 : 0; - - printf("%s\n", prne_arch_tostr(prne_host_arch)); - - return exit_code; -} |