diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2003-07-14 03:46:35 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2003-07-14 03:46:35 +0000 |
commit | dcc15d3af681e80d10eb2ce13bfc6014eb652562 (patch) | |
tree | 231b812dc391885f7a0b3ce496730708edb650a4 /graphics/libfpx/files/patch-buffdesc | |
parent | a2d1c8cccf199a909bf00ca92a819bf62dd1c3ae (diff) | |
download | ports-dcc15d3af681e80d10eb2ce13bfc6014eb652562.tar.gz ports-dcc15d3af681e80d10eb2ce13bfc6014eb652562.zip |
Notes
Diffstat (limited to 'graphics/libfpx/files/patch-buffdesc')
-rw-r--r-- | graphics/libfpx/files/patch-buffdesc | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/graphics/libfpx/files/patch-buffdesc b/graphics/libfpx/files/patch-buffdesc deleted file mode 100644 index b503e370e7ce..000000000000 --- a/graphics/libfpx/files/patch-buffdesc +++ /dev/null @@ -1,87 +0,0 @@ ---- fpx/buffdesc.cpp Wed Apr 23 21:31:48 2003 -+++ fpx/buffdesc.cpp Fri Apr 25 18:41:02 2003 -@@ -74,69 +74,31 @@ - } - } --/* --// Rotate on the left by 8 bits on each 32 bits long and wrap the last one --static void Shift8BitsLeft (unsigned char* buffer, long size) --{ -- register unsigned long tmp; -- register unsigned long* all = (unsigned long*)(buffer); -- while (size--) { -- tmp = (*all) >> 24; -- (*all) = ((*all) << 8) | tmp; -- all++; -- } --} */ -+ - //Updated the procedure to work on both architedture --**IM-05/16/97 - // Rotate on the left by 8 bits on each 32 bits long and wrap the last one - static void Shift8BitsLeft (unsigned char* buffer, long size) - { -- register unsigned long tmp; -- register unsigned long* all = (unsigned long*)(buffer); -+ unsigned char tmp; - while (size--) { -- --#ifdef IN_LITTLE_ENDIAN -- *all = (unsigned long) SwapBytes( (int32) *all ); --#endif -- -- tmp = (*all) >> 24; -- (*all) = ((*all) << 8) | tmp; -- --#ifdef IN_LITTLE_ENDIAN -- *all = (unsigned long) SwapBytes( (int32) *all ); --#endif -- -- all++; -+ tmp = buffer[0]; -+ buffer[0] = buffer[1]; -+ buffer[1] = buffer[2]; -+ buffer[2] = buffer[3]; -+ buffer[3] = tmp; -+ buffer += 4; - } - } --/* --// Rotate on the right by 8 bits on each 32 bits long and wrap the last one --static void Shift8BitsRight (unsigned char* buffer, long size) --{ -- register unsigned long tmp; -- register unsigned long* all = (unsigned long*)(buffer); -- while (size--) { -- tmp = (*all) << 24; -- (*all) = ((*all) >> 8) | tmp; -- all++; -- } --} --*/ - - // Rotate on the right by 8 bits on each 32 bits long and wrap the last one - static void Shift8BitsRight (unsigned char* buffer, long size) - { -- register unsigned long tmp; -- register unsigned long* all = (unsigned long*)(buffer); -+ unsigned char tmp; - while (size--) { -- --#ifdef IN_LITTLE_ENDIAN -- *all = (unsigned long) SwapBytes( (int32) *all ); --#endif -- tmp = (*all) << 24; -- (*all) = ((*all) >> 8) | tmp; -- --#ifdef IN_LITTLE_ENDIAN -- *all = (unsigned long) SwapBytes( (int32) *all ); --#endif -- all++; -+ tmp = buffer[3]; -+ buffer[3] = buffer[2]; -+ buffer[2] = buffer[1]; -+ buffer[1] = buffer[0]; -+ buffer[0] = tmp; -+ buffer += 4; - } - } |