Leaked source code of windows server 2003
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.

38 lines
1.1 KiB

  1. #ifndef __glumymath_h_
  2. #define __glumymath_h_
  3. /**************************************************************************
  4. * *
  5. * Copyright (C) 1992, Silicon Graphics, Inc. *
  6. * *
  7. * These coded instructions, statements, and computer programs contain *
  8. * unpublished proprietary information of Silicon Graphics, Inc., and *
  9. * are protected by Federal copyright law. They may not be disclosed *
  10. * to third parties or copied or duplicated in any form, in whole or *
  11. * in part, without the prior written consent of Silicon Graphics, Inc. *
  12. * *
  13. **************************************************************************/
  14. /*
  15. * mymath.h - $Revision: 1.1 $
  16. */
  17. #ifdef GLBUILD
  18. #define sqrtf gl_fsqrt
  19. #endif
  20. #if GLBUILD | STANDALONE
  21. #define M_SQRT2 1.41421356237309504880
  22. #define ceilf myceilf
  23. #define floorf myfloorf
  24. #define sqrtf sqrt
  25. extern "C" double sqrt(double);
  26. extern "C" float ceilf(float);
  27. extern "C" float floorf(float);
  28. #define NEEDCEILF
  29. #endif
  30. #ifdef LIBRARYBUILD
  31. #include <math.h>
  32. #endif
  33. #endif /* __glumymath_h_ */