UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

11 lines (8 loc) 221 B
/** * Bitwise circular shift left * http://en.wikipedia.org/wiki/Circular_shift */ function rol(val, shift){ return (val << shift) | (val >> (32 - shift)); } module.exports = rol;