complex 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /******************************************************************************/
  2. /* This file was taken from STLport <www.stlport.org> and modified by */
  3. /* Texas Instruments. */
  4. /******************************************************************************/
  5. /*
  6. * Copyright (c) 1999
  7. * Silicon Graphics Computer Systems, Inc.
  8. *
  9. * Copyright (c) 1999
  10. * Boris Fomitchev
  11. *
  12. * Copyright (c) 2014-2014 Texas Instruments Incorporated
  13. *
  14. * This material is provided "as is", with absolutely no warranty expressed
  15. * or implied. Any use is at your own risk.
  16. *
  17. * Permission to use or copy this software for any purpose is hereby granted
  18. * without fee, provided the above notices are retained on all copies.
  19. * Permission to modify the code and to distribute modified code is granted,
  20. * provided the above notices are retained, and a notice that the code was
  21. * modified is included with the above copyright notice.
  22. *
  23. */
  24. #ifndef _STLP_COMPLEX
  25. #ifndef _STLP_OUTERMOST_HEADER_ID
  26. # define _STLP_OUTERMOST_HEADER_ID 0x10
  27. # define _STLP_COMPLEX
  28. # include <s__prolog.h>
  29. #endif
  30. #if (_STLP_OUTERMOST_HEADER_ID == 0x10)
  31. // This header declares the template class complex, as described in
  32. // in the C++ Standard. Single-precision complex numbers
  33. // are complex<float>, double-precision are complex<double>, and
  34. // quad precision are complex<long double>.
  35. // Note that the template class complex is declared within namespace
  36. // std, as called for by the draft C++ standard
  37. # ifndef _STLP_INTERNAL_COMPLEX
  38. # include <s__complex.h>
  39. # endif
  40. #endif
  41. #if (_STLP_OUTERMOST_HEADER_ID != 0x10) || defined (_STLP_IMPORT_VENDOR_STD)
  42. # if defined (_STLP_HAS_INCLUDE_NEXT)
  43. # include_next <complex>
  44. # else
  45. # include _STLP_NATIVE_HEADER(complex)
  46. # endif
  47. #endif
  48. #if (_STLP_OUTERMOST_HEADER_ID == 0x10 )
  49. # include <s__epilog.h>
  50. # undef _STLP_OUTERMOST_HEADER_ID
  51. #endif
  52. #endif /* _STLP_COMPLEX */
  53. // Local Variables:
  54. // mode:C++
  55. // End: