summaryrefslogtreecommitdiffstats
path: root/include/bitops.h
Commit message (Collapse)AuthorAgeFilesLines
* include/bitops: avoid fallbacks for more systemsRuediger Meier2016-03-081-0/+21
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* include/bitops: add casts to bswap functionsRuediger Meier2016-03-081-14/+19
| | | | | | Based on kernel sources include/uapi/linux/swab.h. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* include: cleanup copyright headersKarel Zak2013-01-081-0/+6
| | | | | | | We use the code from include/ and lib/ on many places, so use public domain if possible or LGPL for code copied from libs. Signed-off-by: Karel Zak <kzak@redhat.com>
* include/bitopts: Use the operating system byteswapping functionsKarel Zak2013-01-081-63/+97
| | | | | | | The swap macros are already in libc. Co-Author: Cristian Rodríguez <crrodriguez@opensuse.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* include: [bitops.h] make return values consistentKarel Zak2011-08-021-12/+12
| | | | | | | The *_to_cpu() and cpu_to_*() macros have to return always the same date types independently on CPU type. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use WORDS_BIGENDIAN to determine platform byte-orderFabian Groffen2011-01-171-8/+3Star
| | | | | | | | | | | | Autoconf contains the right magic to determine the endianness on many platforms next to Linux. This reverses previous commits to move away from WORDS_BIGENDIAN: "use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN" This is necessary to compile on non Linux platforms like Darwin and Solaris. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* fsck.minix: fix broken zone checkingKarel Zak2009-10-151-0/+16
| | | | | | | | | | | | | This bug has been introduced by commit 95356e8b744439336925eeb36f01399f1ee8a5e9. The fsck.minix code assumes that isset() macro returns boolean, unfortunately the generic implementation from libc returns integer. This patch also add a fallback for the bitmap macros to include/bitops.h. Reported-by: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl> Signed-off-by: Karel Zak <kzak@redhat.com>
* include: bitops - explicitly include endian.hKarel Zak2009-03-171-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: use __BYTE_ORDER rather than AC specific WORDS_BIGENDIANKarel Zak2008-12-081-3/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: <stdint.h> provides everythingSamuel Thibault2007-12-181-1/+0Star
| | | | | | Do not include <linux/posix_types.h> as <stdint.h> provides everything. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* include: add bitops.h with swab{16,32,64} macrosKarel Zak2007-12-171-2/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include: add bitops.h with swab{16,32,64} macrosKarel Zak2007-12-171-0/+51
Signed-off-by: Karel Zak <kzak@redhat.com>