time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (786B)


      1 
      2 {{alias}}( x, shift )
      3     Performs a bitwise rotation to the right.
      4 
      5     If `shift = 0`, the function returns `x`.
      6 
      7     If `shift >= 32`, the function only considers the five least significant
      8     bits of `shift` (i.e., `shift % 32`).
      9 
     10     Parameters
     11     ----------
     12     x: integer
     13         Unsigned 32-bit integer.
     14 
     15     shift: integer
     16         Number of bits to shift.
     17 
     18     Returns
     19     -------
     20     out: integer
     21         Unsigned 32-bit integer.
     22 
     23     Examples
     24     --------
     25     > var x = 1;
     26     > var bStr = {{alias:@stdlib/number/uint32/base/to-binary-string}}( x )
     27     '00000000000000000000000000000001'
     28     > var y = {{alias}}( x, 10 )
     29     4194304
     30     > bstr = {{alias:@stdlib/number/uint32/base/to-binary-string}}( y )
     31     '00000000010000000000000000000000'
     32 
     33     See Also
     34     --------
     35