summaryrefslogtreecommitdiffstats
path: root/libhb/bits.h
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-09-11 09:56:06 -0700
committerJohn Stebbins <[email protected]>2019-09-12 10:22:07 -0700
commit1b7948495fcf4d511e62d7f9c3a0c1a3ccb59f80 (patch)
treec87c308f35d862678a4bca37637d24acb8de1c2c /libhb/bits.h
parenta7f548861f9f0be309659e93eaccd1994a3a5cfe (diff)
libhb: resolve header conflicts with pango/harfbuzz
Newest versions appear to have a "common.h" somewhere that is interfering with libhb/common.h. move headers into "handbrake" subdirectory
Diffstat (limited to 'libhb/bits.h')
-rw-r--r--libhb/bits.h90
1 files changed, 0 insertions, 90 deletions
diff --git a/libhb/bits.h b/libhb/bits.h
deleted file mode 100644
index 8785f4b5c..000000000
--- a/libhb/bits.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/* bits.h
-
- Copyright (c) 2003-2019 HandBrake Team
- This file is part of the HandBrake source code
- Homepage: <http://handbrake.fr/>.
- It may be used under the terms of the GNU General Public License v2.
- For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
- */
-
-#ifndef HB_BITS_H
-#define HB_BITS_H
-
-static inline int
-allbits_set(uint32_t *bitmap, int num_words)
-{
- unsigned int i;
- for( i = 0; i < num_words; i++ )
- {
- if( bitmap[i] != 0xFFFFFFFF )
- return (0);
- }
- return (1);
-}
-
-static inline int
-bit_is_set( uint32_t *bit_map, int bit_pos )
-{
- return( ( bit_map[bit_pos >> 5] & (0x1 << (bit_pos & 0x1F) ) ) != 0 );
-}
-
-static inline int
-bit_is_clear( uint32_t *bit_map, int bit_pos )
-{
- return( ( bit_map[bit_pos >> 5] & ( 0x1 << (bit_pos & 0x1F) ) ) == 0 );
-}
-
-static inline void
-bit_set( uint32_t *bit_map, int bit_pos )
-{
- bit_map[bit_pos >> 5] |= 0x1 << (bit_pos & 0x1F);
-}
-
-static inline void
-bit_clear(uint32_t *bit_map, int bit_pos)
-{
- bit_map[bit_pos >> 5] &= ~( 0x1 << ( bit_pos & 0x1F ) );
-}
-
-static inline void
-bit_nclear(uint32_t *bit_map, int start_pos, int stop_pos)
-{
- int start_word = start_pos >> 5;
- int stop_word = stop_pos >> 5;
-
- if ( start_word == stop_word )
- {
-
- bit_map[start_word] &= ( ( 0x7FFFFFFF >> ( 31 - (start_pos & 0x1F ) ) )
- | ( 0xFFFFFFFE << ( stop_pos & 0x1F ) ) );
- }
- else
- {
- bit_map[start_word] &= ( 0x7FFFFFFF >> ( 31 - ( start_pos & 0x1F ) ) );
- while (++start_word < stop_word)
- bit_map[start_word] = 0;
- bit_map[stop_word] &= 0xFFFFFFFE << ( stop_pos & 0x1F );
- }
-}
-
-static inline void
-bit_nset(uint32_t *bit_map, int start_pos, int stop_pos)
-{
- int start_word = start_pos >> 5;
- int stop_word = stop_pos >> 5;
-
- if ( start_word == stop_word )
- {
- bit_map[start_word] |= ( ( 0xFFFFFFFF << ( start_pos & 0x1F ) )
- & ( 0xFFFFFFFF >> ( 31 - ( stop_pos & 0x1F ) ) ) );
- }
- else
- {
- bit_map[start_word] |= 0xFFFFFFFF << ( start_pos & 0x1F );
- while (++start_word < stop_word)
- bit_map[start_word] = 0xFFFFFFFF;
- bit_map[stop_word] |= 0xFFFFFFFF >> ( 31 - ( stop_pos & 0x1F ) );
- }
-}
-
-#endif /* HB_BITS_H */