ilaprec.c 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* ilaprec.f -- translated by f2c (version 20061008).
  2. You must link the resulting object file with libf2c:
  3. on Microsoft Windows system, link with libf2c.lib;
  4. on Linux or Unix systems, link with .../path/to/libf2c.a -lm
  5. or, if you install libf2c.a in a standard place, with -lf2c -lm
  6. -- in that order, at the end of the command line, as in
  7. cc *.o -lf2c -lm
  8. Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
  9. http://www.netlib.org/f2c/libf2c.zip
  10. */
  11. #include "f2c.h"
  12. #include "blaswrap.h"
  13. integer _starpu_ilaprec_(char *prec)
  14. {
  15. /* System generated locals */
  16. integer ret_val;
  17. /* Local variables */
  18. extern logical _starpu_lsame_(char *, char *);
  19. /* -- LAPACK routine (version 3.2) -- */
  20. /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
  21. /* October 2008 */
  22. /* .. Scalar Arguments .. */
  23. /* .. */
  24. /* Purpose */
  25. /* ======= */
  26. /* This subroutine translated from a character string specifying an */
  27. /* intermediate precision to the relevant BLAST-specified integer */
  28. /* constant. */
  29. /* ILAPREC returns an INTEGER. If ILAPREC < 0, then the input is not a */
  30. /* character indicating a supported intermediate precision. Otherwise */
  31. /* ILAPREC returns the constant value corresponding to PREC. */
  32. /* Arguments */
  33. /* ========= */
  34. /* PREC (input) CHARACTER*1 */
  35. /* Specifies the form of the system of equations: */
  36. /* = 'S': Single */
  37. /* = 'D': Double */
  38. /* = 'I': Indigenous */
  39. /* = 'X', 'E': Extra */
  40. /* ===================================================================== */
  41. /* .. Parameters .. */
  42. /* .. */
  43. /* .. External Functions .. */
  44. /* .. */
  45. /* .. Executable Statements .. */
  46. if (_starpu_lsame_(prec, "S")) {
  47. ret_val = 211;
  48. } else if (_starpu_lsame_(prec, "D")) {
  49. ret_val = 212;
  50. } else if (_starpu_lsame_(prec, "I")) {
  51. ret_val = 213;
  52. } else if (_starpu_lsame_(prec, "X") || _starpu_lsame_(prec, "E")) {
  53. ret_val = 214;
  54. } else {
  55. ret_val = -1;
  56. }
  57. return ret_val;
  58. /* End of ILAPREC */
  59. } /* _starpu_ilaprec_ */