Hi Collin,

> > already did. How far did you get on this topic?
> 
> I had a look a few weekends ago, but was not able to get it working.
> Then forgot about it... Sorry, I do not have much done for you.

Nothing to be sorry about. It's OK that you have different priorities.

> +# if defined _MSC_VER || (defined __MINGW32__ && FE_INVALID != 0x01)

Thanks, I'll keep that in mind, for testing mingw >= 13 [1] against
mingw < 13.

> But, I think most of my issues came from trying to implement 'fegetenv'
> and 'fesetenv'. Because in those functions we must be able to save and
> restore the X87 FPU status & control word and the MXCSR control and
> status register in 2 32-bit integers:
> 
>     typedef struct
>     {
>       unsigned long _Fe_ctl;
>       unsigned long _Fe_stat;
>     } fenv_t;
> 
> I thought the proper way to do this was to reserve the low bits for the
> exception and trap bits and then use the higher bits to mark if they
> were set in the X87 FPU, MXCSR, or both.

Maybe I'll get there in the second step.

My first step will be to force all configure tests to pass and then
run the unit test programs, without any gnulib overrides.

Bruno

[1] https://cygwin.com/pipermail/cygwin-announce/2025-June/012366.html




Reply via email to