Skip to content

Musl compatibility fixes for s390 and powerpc #331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions include/openlibm_fenv_powerpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@
#ifndef _FENV_H_
#define _FENV_H_

#include <stdint.h>
#include <sys/types.h>
#include "cdefs-compat.h"

#ifndef __fenv_static
#define __fenv_static static
#endif

typedef __uint32_t fenv_t;
typedef __uint32_t fexcept_t;
typedef uint32_t fenv_t;
typedef uint32_t fexcept_t;

/* Exception flags */
#define FE_INEXACT 0x02000000
Expand Down Expand Up @@ -99,9 +101,9 @@ union __fpscr {
struct {
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
fenv_t __reg;
__uint32_t __junk;
uint32_t __junk;
#else
__uint32_t __junk;
uint32_t __junk;
fenv_t __reg;
#endif
} __bits;
Expand Down
6 changes: 4 additions & 2 deletions include/openlibm_fenv_s390.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@
#ifndef _FENV_H_
#define _FENV_H_

#include <stdint.h>
#include <sys/types.h>
#include "cdefs-compat.h"

#ifndef __fenv_static
#define __fenv_static static
#endif

typedef __uint32_t fenv_t;
typedef __uint32_t fexcept_t;
typedef uint32_t fenv_t;
typedef uint32_t fexcept_t;

/* Exception flags */
#define FE_INEXACT 0x080000
Expand Down