]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/crc32c: refactor a bit
authorSage Weil <sage@inktank.com>
Tue, 20 Aug 2013 18:55:10 +0000 (11:55 -0700)
committerSage Weil <sage@inktank.com>
Tue, 20 Aug 2013 23:42:53 +0000 (16:42 -0700)
commita286090602c4776adf53e17b98e8c7edd5bc3163
tree75162d9574cedfc9f979adc143cdbaab4177b260
parent9cea33ab39f5f6bfa20d99f10c94d38f9948d60d
common/crc32c: refactor a bit

- the generic function without the _le suffix (useless)
- use a static global so that detection only happens once
- make the structure a bit cleaner to plug in new implementations

Signed-off-by: Sage Weil <sage@inktank.com>
src/Makefile.am
src/common/crc32c.cc [new file with mode: 0644]
src/common/sctp_crc32.c
src/common/sctp_crc32.h [new file with mode: 0644]
src/include/buffer.h
src/include/crc32c.h
src/msg/Message.h
src/msg/Pipe.cc