blitz_cclib.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef BLITZ_CCLIB_H
  2. #define BLITZ_CCLIB_H
  3. #include "blitz_types.h"
  4. #ifdef __cplusplus
  5. extern "C"{
  6. #endif
  7. int bbIntAbs( int x );
  8. int bbIntSgn( int x );
  9. int bbIntMod( int x,int y );
  10. int bbIntMin( int x,int y );
  11. int bbIntMax( int x,int y );
  12. void bbIntToLong( BBInt64 *r,int x );
  13. double bbFloatAbs( double x );
  14. double bbFloatSgn( double x );
  15. double bbFloatPow( double x,double y );
  16. double bbFloatMod( double x,double y );
  17. double bbFloatMin( double x,double y );
  18. double bbFloatMax( double x,double y );
  19. int bbFloatToInt( double x );
  20. void bbFloatToLong( BBInt64 *r,double x );
  21. void bbLongNeg( BBInt64 *r,BBInt64 x );
  22. void bbLongNot( BBInt64 *r,BBInt64 x );
  23. void bbLongAbs( BBInt64 *r,BBInt64 x );
  24. void bbLongSgn( BBInt64 *r,BBInt64 x );
  25. void bbLongAdd( BBInt64 *r,BBInt64 x,BBInt64 y );
  26. void bbLongSub( BBInt64 *r,BBInt64 x,BBInt64 y );
  27. void bbLongMul( BBInt64 *r,BBInt64 x,BBInt64 y );
  28. void bbLongDiv( BBInt64 *r,BBInt64 x,BBInt64 y );
  29. void bbLongMod( BBInt64 *r,BBInt64 x,BBInt64 y );
  30. void bbLongMin( BBInt64 *r,BBInt64 x,BBInt64 y );
  31. void bbLongMax( BBInt64 *r,BBInt64 x,BBInt64 y );
  32. void bbLongAnd( BBInt64 *r,BBInt64 x,BBInt64 y );
  33. void bbLongOrl( BBInt64 *r,BBInt64 x,BBInt64 y );
  34. void bbLongXor( BBInt64 *r,BBInt64 x,BBInt64 y );
  35. void bbLongShl( BBInt64 *r,BBInt64 x,BBInt64 y );
  36. void bbLongShr( BBInt64 *r,BBInt64 x,BBInt64 y );
  37. void bbLongSar( BBInt64 *r,BBInt64 x,BBInt64 y );
  38. int bbLongSlt( BBInt64 x,BBInt64 y );
  39. int bbLongSgt( BBInt64 x,BBInt64 y );
  40. int bbLongSle( BBInt64 x,BBInt64 y );
  41. int bbLongSge( BBInt64 x,BBInt64 y );
  42. int bbLongSeq( BBInt64 x,BBInt64 y );
  43. int bbLongSne( BBInt64 x,BBInt64 y );
  44. double bbLongToFloat( BBInt64 x );
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif