diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2023-10-25 20:14:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-25 14:14:11 +0200 |
| commit | 87bf751b115267d7c388c849c43fca6d3f0d0881 (patch) | |
| tree | edc6f3976538daf8dd1d9a49694d4bda19ef591d /src/wrapped/generated/wrappedlibmtypes.h | |
| parent | 12c40a5b804143cee0d538c4de4b526522bcfcd2 (diff) | |
| download | box64-87bf751b115267d7c388c849c43fca6d3f0d0881.tar.gz box64-87bf751b115267d7c388c849c43fca6d3f0d0881.zip | |
[INTERP] Fix fpu_round (#1030)
* [INTERP] Fix fpu_round * Should be working this time * Handling wrappedlibm * Format * Fix loongarch * Make it optional * Fix android build
Diffstat (limited to 'src/wrapped/generated/wrappedlibmtypes.h')
| -rw-r--r-- | src/wrapped/generated/wrappedlibmtypes.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/wrapped/generated/wrappedlibmtypes.h b/src/wrapped/generated/wrappedlibmtypes.h index 001794ba..6a0a8bf5 100644 --- a/src/wrapped/generated/wrappedlibmtypes.h +++ b/src/wrapped/generated/wrappedlibmtypes.h @@ -11,6 +11,14 @@ #define ADDED_FUNCTIONS() #endif +typedef int32_t (*iFv_t)(void); +typedef int32_t (*iFi_t)(int32_t); +typedef int32_t (*iFf_t)(float); +typedef int32_t (*iFd_t)(double); +typedef int64_t (*IFf_t)(float); +typedef int64_t (*IFd_t)(double); +typedef int64_t (*IFD_t)(long double); +typedef int64_t (*IFK_t)(double); typedef float (*fFf_t)(float); typedef double (*dFd_t)(double); typedef complexf_t (*xFx_t)(complexf_t); @@ -18,6 +26,14 @@ typedef float (*fFff_t)(float, float); typedef double (*dFdd_t)(double, double); #define SUPER() ADDED_FUNCTIONS() \ + GO(fegetround, iFv_t) \ + GO(fesetround, iFi_t) \ + GO(lrintf, iFf_t) \ + GO(lrint, iFd_t) \ + GO(llrintf, IFf_t) \ + GO(llrint, IFd_t) \ + GO(llrintl, IFD_t) \ + GO(llrintl, IFK_t) \ GO(__acosf_finite, fFf_t) \ GO(__acoshf_finite, fFf_t) \ GO(__asinf_finite, fFf_t) \ @@ -29,6 +45,8 @@ typedef double (*dFdd_t)(double, double); GO(__logf_finite, fFf_t) \ GO(__sinhf_finite, fFf_t) \ GO(__sqrtf_finite, fFf_t) \ + GO(nearbyintf, fFf_t) \ + GO(rintf, fFf_t) \ GO(__acos_finite, dFd_t) \ GO(__acosh_finite, dFd_t) \ GO(__asin_finite, dFd_t) \ @@ -40,6 +58,8 @@ typedef double (*dFdd_t)(double, double); GO(__log_finite, dFd_t) \ GO(__sinh_finite, dFd_t) \ GO(__sqrt_finite, dFd_t) \ + GO(nearbyint, dFd_t) \ + GO(rint, dFd_t) \ GO(catanf, xFx_t) \ GO(catanhf, xFx_t) \ GO(__atan2f_finite, fFff_t) \ |