Skip to content
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

Sync patches from upstream (BSD) #320

Open
2 tasks
inkydragon opened this issue Feb 10, 2025 · 0 comments
Open
2 tasks

Sync patches from upstream (BSD) #320

inkydragon opened this issue Feb 10, 2025 · 0 comments

Comments

@inkydragon
Copy link
Member

Do we want to sync openlibm_fenv_arm.h from FreeBSD too?

Seems there are some bugs:

/* We need to be able to map status flag positions to mask flag positions */
#define _FPUSW_SHIFT 16
#define _ENABLE_MASK (FE_ALL_EXCEPT << _FPUSW_SHIFT)

/* We need to be able to map status flag positions to mask flag positions */
#ifndef __ARM_PCS_VFP
#define	_FPUSW_SHIFT	16
#define	_ENABLE_MASK	(FE_ALL_EXCEPT << _FPUSW_SHIFT)
#endif

And FreeBSD doesn't use _ENABLE_MASK freebsd/freebsd-src@de1aa3d/lib/msun/arm/fenv.h#L83-L87

#else	/* __ARM_PCS_VFP */

...

#define _FPU_MASK_SHIFT	8

freebsd/freebsd-src@de1aa3d/lib/msun/arm/fenv.h#L113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant