Browse Source

Merge pull request #4256 from ChipKerchner/fixBfloat16BitsStruct

Fix bfloat16_bits union so that it always the sizeof unsigned short for AIX.
tags/v0.3.25^2
Martin Kroeker GitHub 2 years ago
parent
commit
425bcc1f8b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      test/compare_sgemm_sbgemm.c

+ 8
- 0
test/compare_sgemm_sbgemm.c View File

@@ -32,7 +32,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
typedef union
{
unsigned short v;
#if defined(_AIX)
struct __attribute__((packed))
#else
struct
#endif
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
unsigned short s:1;
@@ -49,7 +53,11 @@ typedef union
typedef union
{
float v;
#if defined(_AIX)
struct __attribute__((packed))
#else
struct
#endif
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
uint32_t s:1;


Loading…
Cancel
Save