rt_gccstream/gcc/testsuite/gfortran.dg/lrshift_1.c

4 lines
183 B
C

/* Left and right shift C routines, to compare to Fortran results. */
int c_lshift_ (int *x, int *y) { return (*x) << (*y); }
int c_rshift_ (int *x, int *y) { return (*x) >> (*y); }