Previous 199869 Revisions Next

r35053 Sunday 15th February, 2015 at 19:15:27 UTC by Miodrag Milanović
Sync with latest BGFX and BX (nw)
[3rdparty/bgfx/3rdparty/ib-compress]readbitstream.h
[3rdparty/bgfx/examples/common/font]font_manager.cpp
[3rdparty/bgfx/src]image.cpp
[3rdparty/bx/include/bx]macros.h

trunk/3rdparty/bgfx/3rdparty/ib-compress/readbitstream.h
r243564r243565
9595    }
9696}
9797
98#if defined(__GNUC__) || defined(_MSC_VER)
99#define U64(val) val##ULL
100#else
101#define U64(val) val
102#endif
103
10498RBS_INLINE uint32_t ReadBitstream::Read( uint32_t bitCount )
10599{
106100    uint64_t mask   = ( uint64_t( 1 ) << bitCount ) - 1;
107    uint32_t result = static_cast< uint32_t >( ( m_bitBuffer >> ( 64 - m_bitsLeft ) & ( m_bitsLeft == 0 ? 0 : U64(0xFFFFFFFFFFFFFFFF) ) ) & mask );
101    uint32_t result = static_cast< uint32_t >( ( m_bitBuffer >> ( 64 - m_bitsLeft ) & ( m_bitsLeft == 0 ? 0 : UINT64_C(0xFFFFFFFFFFFFFFFF) ) ) & mask );
108102
109103    if ( m_bitsLeft < bitCount )
110104    {
trunk/3rdparty/bgfx/examples/common/font/font_manager.cpp
r243564r243565
1313
1414BX_PRAGMA_DIAGNOSTIC_PUSH();
1515BX_PRAGMA_DIAGNOSTIC_IGNORED_MSVC(4245) // error C4245: '=' : conversion from 'int' to 'FT_UInt', signed/unsigned mismatch
16#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))
16#if BX_COMPILER_MSVC || BX_COMPILER_GCC >= 40300
1717#pragma push_macro("interface")
1818#endif
1919#undef interface
2020#include <freetype/freetype.h>
21#if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))
21#if BX_COMPILER_MSVC || BX_COMPILER_GCC >= 40300
2222#pragma pop_macro("interface")
2323#endif
2424BX_PRAGMA_DIAGNOSTIC_POP();
trunk/3rdparty/bgfx/src/image.cpp
r243564r243565
13911391
13921392   static TranslateDdsPixelFormat s_translateDdsPixelFormat[] =
13931393   {
1394      {  8, { 0x000000ff, 0x00000000, 0x00000000, 0x00000000 }, TextureFormat::R8      },
1395      { 16, { 0x0000ffff, 0x00000000, 0x00000000, 0x00000000 }, TextureFormat::R16     },
1396      { 16, { 0x00000f00, 0x000000f0, 0x0000000f, 0x0000f000 }, TextureFormat::RGBA4   },
1397      { 16, { 0x0000f800, 0x000007e0, 0x0000001f, 0x00000000 }, TextureFormat::R5G6B5  },
1398      { 16, { 0x00007c00, 0x000003e0, 0x0000001f, 0x00008000 }, TextureFormat::RGB5A1  },
13941399      { 32, { 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000 }, TextureFormat::BGRA8   },
13951400      { 32, { 0x00ff0000, 0x0000ff00, 0x000000ff, 0x00000000 }, TextureFormat::BGRA8   },
13961401      { 32, { 0x000003ff, 0x000ffc00, 0x3ff00000, 0xc0000000 }, TextureFormat::RGB10A2 },
trunk/3rdparty/bx/include/bx/macros.h
r243564r243565
138138#   define BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG(_x)
139139#endif // BX_COMPILER_CLANG
140140
141#if BX_COMPILER_GCC && (__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)
141#if BX_COMPILER_GCC && BX_COMPILER_GCC >= 40600
142142#   define BX_PRAGMA_DIAGNOSTIC_PUSH_GCC()        _Pragma("GCC diagnostic push")
143143#   define BX_PRAGMA_DIAGNOSTIC_POP_GCC()         _Pragma("GCC diagnostic pop")
144144#   define BX_PRAGMA_DIAGNOSTIC_IGNORED_GCC(_x)   _Pragma(BX_STRINGIZE(GCC diagnostic ignored _x) )
r243564r243565
173173#endif // BX_COMPILER_
174174
175175///
176#if defined(__GNUC__) && defined(__is_pod)
176#if BX_COMPILER_GCC && defined(__is_pod)
177177#   define BX_TYPE_IS_POD(t) __is_pod(t)
178#elif defined(_MSC_VER)
178#elif BX_COMPILER_MSVC
179179#   define BX_TYPE_IS_POD(t) (!__is_class(t) || __is_pod(t))
180180#else
181181#   define BX_TYPE_IS_POD(t) false


Previous 199869 Revisions Next


© 1997-2024 The MAME Team