summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorAlex Elder <elder@dreamhost.com>2012-02-15 13:43:54 (GMT)
committerAlex Elder <elder@dreamhost.com>2012-03-22 15:47:51 (GMT)
commita9a0c51af4e7c825c014b40694571456a75ebbc4 (patch)
tree6df7b2873d21f3c9c5e449aca1d8c16f4dd5fc1d /.gitignore
parentbca064d236a2e3162a07c758855221bcbe3c475b (diff)
downloadlinux-fsl-qoriq-a9a0c51af4e7c825c014b40694571456a75ebbc4.tar.xz
libceph: separate CRC calculation from byte swapping
Calculate CRC in a separate step from rearranging the byte order of the result, to improve clarity and readability. Use offsetof() to determine the number of bytes to include in the CRC calculation. In read_partial_message(), switch which value gets byte-swapped, since the just-computed CRC is already likely to be in a register. Signed-off-by: Alex Elder <elder@dreamhost.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions