sceil.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* sceil.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. doublereal _starpu_sceil_(real *a)
  14. {
  15. /* System generated locals */
  16. real ret_val;
  17. /* -- LAPACK routine (version 3.1) -- */
  18. /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
  19. /* June 2008 */
  20. /* .. Scalar Arguments ..* */
  21. /* .. */
  22. /* ===================================================================== */
  23. /* .. Intrinsic Functions .. */
  24. /* .. */
  25. /* .. Executable Statements ..* */
  26. if (*a - (integer) (*a) == 0.f) {
  27. ret_val = *a;
  28. } else if (*a > 0.f) {
  29. ret_val = (real) ((integer) (*a) + 1);
  30. } else {
  31. ret_val = (real) ((integer) (*a));
  32. }
  33. return ret_val;
  34. } /* _starpu_sceil_ */