You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
558 B

25 years ago
  1. #include <cl_number.h>
  2. #include <cl_io.h>
  3. #include <cl_float.h>
  4. #include <cl_real.h>
  5. #include <cl_random.h>
  6. #include <stdlib.h>
  7. #include <string.h>
  8. #include <cl_timing.h>
  9. int main (int argc, char * argv[])
  10. {
  11. int repetitions = 1;
  12. if ((argc >= 3) && !strcmp(argv[1],"-r")) {
  13. repetitions = atoi(argv[2]);
  14. argc -= 2; argv += 2;
  15. }
  16. if (argc < 2)
  17. exit(1);
  18. uintL len = atoi(argv[1]);
  19. extern cl_LF compute_exp1 (uintC len);
  20. cl_LF p;
  21. { CL_TIMING;
  22. for (int rep = repetitions; rep > 0; rep--)
  23. { p = compute_exp1(len); }
  24. }
  25. // cout << p << endl;
  26. }