openlibm: update to 0.8.7

This commit is contained in:
Biswapriyo Nath 2025-06-05 04:41:25 +00:00
parent c33d97ba11
commit d24d56aea4
2 changed files with 6 additions and 51 deletions

View File

@ -1,42 +0,0 @@
--- openlibm-0.8.6/include/openlibm_fenv_aarch64.h.orig 2025-02-10 12:03:13.000000000 +0100
+++ openlibm-0.8.6/include/openlibm_fenv_aarch64.h 2025-03-10 22:38:32.629771200 +0100
@@ -36,8 +36,8 @@
#endif
/* The high 32 bits contain fpcr, low 32 contain fpsr. */
-typedef __uint64_t fenv_t;
-typedef __uint64_t fexcept_t;
+typedef uint64_t fenv_t;
+typedef uint64_t fexcept_t;
/* Exception flags */
#define FE_INVALID 0x00000001
@@ -158,8 +158,8 @@
__fenv_static inline int
fegetenv(fenv_t *__envp)
{
- __uint64_t fpcr;
- __uint64_t fpsr;
+ uint64_t fpcr;
+ uint64_t fpsr;
__mrs_fpcr(fpcr);
__mrs_fpsr(fpsr);
@@ -179,7 +179,7 @@
__msr_fpcr(__r);
__mrs_fpsr(__r);
- *__envp |= (__uint32_t)__r;
+ *__envp |= (uint32_t)__r;
__r &= ~(_ENABLE_MASK);
__msr_fpsr(__r);
return (0);
@@ -190,7 +190,7 @@
{
__msr_fpcr((*__envp) >> 32);
- __msr_fpsr((fenv_t)(__uint32_t)*__envp);
+ __msr_fpsr((fenv_t)(uint32_t)*__envp);
return (0);
}

View File

@ -3,8 +3,8 @@
_realname=openlibm
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.8.6
pkgrel=3
pkgver=0.8.7
pkgrel=1
pkgdesc="High quality system independent, portable, open source libm implementation (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
@ -14,11 +14,9 @@ license=('spdx:MIT')
depends=("${MINGW_PACKAGE_PREFIX}-cc-libs")
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
source=("https://github.com/JuliaMath/${_realname}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
"0001-openlibm-fix-pkgconfig-file.patch"
"0002-fix-aarch64-build.patch")
sha256sums=('347998968cfeb2f9b91de6a8e85d2ba92dec0915d53500a4bc483e056f85b94c'
'e3f2974f26d1ea5b548b153408959f3f53ab5d920dec6b94fb69e75654a635f7'
'4bf23668a2f5865fa2d2421f85f7df35bf096bb131427bca15fb4cf4ea162c75')
"0001-openlibm-fix-pkgconfig-file.patch")
sha256sums=('e328a1d59b94748b111e022bca6a9d2fc0481fb57d23c87d90f394b559d4f062'
'e3f2974f26d1ea5b548b153408959f3f53ab5d920dec6b94fb69e75654a635f7')
# Helper macros to help make tasks easier #
apply_patch_with_msg() {
@ -43,8 +41,7 @@ prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
apply_patch_with_msg \
0001-openlibm-fix-pkgconfig-file.patch \
0002-fix-aarch64-build.patch
0001-openlibm-fix-pkgconfig-file.patch
}
build() {