qbitshft.c 258 B

1234567891011121314151617
  1. #include "f2c.h"
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. longint
  6. #ifdef KR_headers
  7. qbit_shift(a, b) longint a; integer b;
  8. #else
  9. qbit_shift(longint a, integer b)
  10. #endif
  11. {
  12. return b >= 0 ? a << b : (longint)((ulongint)a >> -b);
  13. }
  14. #ifdef __cplusplus
  15. }
  16. #endif