Skip to content

Commit

Permalink
more shit
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Pizlo committed Jan 4, 2024
1 parent 7784542 commit bcb02f0
Show file tree
Hide file tree
Showing 24 changed files with 13 additions and 1,239 deletions.
14 changes: 1 addition & 13 deletions arch/aarch64/bits/fenv.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
#define FE_INVALID 1
#define FE_DIVBYZERO 2
#define FE_OVERFLOW 4
#define FE_UNDERFLOW 8
#define FE_INEXACT 16
#define FE_ALL_EXCEPT 31
#define FE_TONEAREST 0
#define FE_DOWNWARD 0x800000
#define FE_UPWARD 0x400000
#define FE_TOWARDZERO 0xc00000

typedef unsigned int fexcept_t;

typedef struct {
unsigned int __fpcr;
unsigned int __fpsr;
unsigned int __opaque[2];
} fenv_t;

#define FE_DFL_ENV ((const fenv_t *) -1)
16 changes: 1 addition & 15 deletions arch/x86_64/bits/fenv.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
#define FE_INVALID 1
#define __FE_DENORM 2
#define FE_DIVBYZERO 4
#define FE_OVERFLOW 8
#define FE_UNDERFLOW 16
#define FE_INEXACT 32

#define FE_ALL_EXCEPT 63

#define FE_TONEAREST 0
#define FE_DOWNWARD 0x400
#define FE_UPWARD 0x800
#define FE_TOWARDZERO 0xc00

typedef unsigned short fexcept_t;
typedef unsigned int fexcept_t;

typedef struct {
unsigned short __control_word;
Expand Down
11 changes: 11 additions & 0 deletions include/fenv.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
extern "C" {
#endif

#define FE_INVALID 1
#define FE_DIVBYZERO 2
#define FE_OVERFLOW 4
#define FE_UNDERFLOW 8
#define FE_INEXACT 16
#define FE_ALL_EXCEPT 31
#define FE_TONEAREST 0
#define FE_DOWNWARD 32
#define FE_UPWARD 64
#define FE_TOWARDZERO 96

#include <bits/fenv.h>

int feclearexcept(int);
Expand Down
68 changes: 0 additions & 68 deletions src/fenv/aarch64/fenv.s

This file was deleted.

70 changes: 0 additions & 70 deletions src/fenv/arm/fenv-hf.S

This file was deleted.

3 changes: 0 additions & 3 deletions src/fenv/arm/fenv.c

This file was deleted.

164 changes: 0 additions & 164 deletions src/fenv/i386/fenv.s

This file was deleted.

Loading

0 comments on commit bcb02f0

Please sign in to comment.