diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-10-11 20:44:26 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-10-15 11:50:39 +0200 |
commit | b1e8889d969f5f88539c47c2afac6c9ea2a2dc11 (patch) | |
tree | e5d3cec5db3c03d59f257ee94ecbefa48956a602 /drivers/pvr/BitUtility.h | |
parent | c31ad71f10f68705a456b4257c084d4008c34370 (diff) | |
download | redot-engine-b1e8889d969f5f88539c47c2afac6c9ea2a2dc11.tar.gz |
dds/etc1/pbm/pvr: Make those modules and split thirdparty files
They are not particularly packaged in Linux distros so we do not
facilitate unbundling via SCons. There could be done if/when there
is interest.
Also s/pnm/pbm/, long-lived typo :)
Diffstat (limited to 'drivers/pvr/BitUtility.h')
-rw-r--r-- | drivers/pvr/BitUtility.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/pvr/BitUtility.h b/drivers/pvr/BitUtility.h deleted file mode 100644 index 588ff3e892..0000000000 --- a/drivers/pvr/BitUtility.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once - -namespace Javelin { - -class BitUtility { -public: - static bool IsPowerOf2(unsigned int x) { - return (x & (x - 1)) == 0; - } - - static unsigned int RotateRight(unsigned int value, unsigned int shift) { - if ((shift &= sizeof(value) * 8 - 1) == 0) { - return value; - } - return (value >> shift) | (value << (sizeof(value) * 8 - shift)); - } -}; - -} |