Source code of Windows XP (NT5)
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.

87 lines
1.9 KiB

  1. /*
  2. ** Copyright 1992, Silicon Graphics, Inc.
  3. ** All Rights Reserved.
  4. **
  5. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6. ** the contents of this file may not be disclosed to third parties, copied or
  7. ** duplicated in any form, in whole or in part, without the prior written
  8. ** permission of Silicon Graphics, Inc.
  9. **
  10. ** RESTRICTED RIGHTS LEGEND:
  11. ** Use, duplication or disclosure by the Government is subject to restrictions
  12. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15. ** rights reserved under the Copyright Laws of the United States.
  16. **
  17. */
  18. #include <setjmp.h>
  19. struct JumpBuffer {
  20. jmp_buf buf;
  21. };
  22. #define mysetjmp(x) setjmp((x)->buf)
  23. #define mylongjmp(x,y) longjmp((x)->buf, y)
  24. /* <<AT&T USL C++ Language System <3.0.1> 02/03/92>> */
  25. /* < ../core/mycode.c++ > */
  26. void *__vec_new (void *, int , int , void *);
  27. void __vec_ct (void *, int , int , void *);
  28. void __vec_dt (void *, int , int , void *);
  29. void __vec_delete (void *, int , int , void *, int , int );
  30. typedef int (*__vptp)(void);
  31. struct __mptr {short d; short i; __vptp f; };
  32. extern struct __mptr* __ptbl_vec_____core_mycode_c___myceilf_[];
  33. float __glmyceilf (float __1x )
  34. {
  35. if (__1x < 0 ){
  36. float __2nx ;
  37. int __2ix ;
  38. __2nx = (- __1x );
  39. __2ix = (((int )__2nx ));
  40. return (((float )(- __2ix )));
  41. }
  42. else
  43. {
  44. int __2ix ;
  45. __2ix = (((int )__1x ));
  46. if (__1x == (((float )__2ix )))return __1x ;
  47. return (((float )(__2ix + 1 )));
  48. }
  49. }
  50. float __glmyfloorf (float __1x )
  51. {
  52. if (__1x < 0 ){
  53. float __2nx ;
  54. int __2ix ;
  55. __2nx = (- __1x );
  56. __2ix = (((int )__2nx ));
  57. if (__2nx == (((float )__2ix )))return __1x ;
  58. return (((float )(- (__2ix + 1 ))));
  59. }
  60. else
  61. {
  62. int __2ix ;
  63. __2ix = (((int )__1x ));
  64. return (((float )__2ix ));
  65. }
  66. }
  67. /* the end */