lbitshft.c 258 B

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