0.8.2.7:
[sbcl.git] / contrib / sb-rotate-byte / rotate-byte.lisp
index 02342f8..9e947fd 100644 (file)
@@ -1,8 +1,11 @@
 (in-package "SB-ROTATE-BYTE")
 
-(defun rotate-byte (count byte integer)
-  #+sb-doc "FIXME: Write a docstring"
-  (rotate-byte count byte integer))
+(defun rotate-byte (count bytespec integer)
+  "Rotates a field of bits within INTEGER; specifically, returns an
+integer that contains the bits of INTEGER rotated COUNT times
+leftwards within the byte specified by BYTESPEC, and elsewhere
+contains the bits of INTEGER."
+  (rotate-byte count bytespec integer))
 
 (defun %rotate-byte (count size pos integer)
   (let ((count (nth-value 1 (round count size)))