RTEMS5 and network statistics

2023-01-11 Thread Miroslaw Dach
Hello, I use RTEMS5 on mvme3100. I would like to read network statistics. I am interested in the transmitted and received bytes and packets. There is a function call *rtems_bsdnet_show_if_stats (void)* in *./cpukit/libnetworking/rtems/rtems_showifstat.c* which uses the BSP specific call: *(*ifp->i

Re: C++ math functions not available in namespace std

2023-01-11 Thread Joel Sherrill
On Wed, Jan 11, 2023 at 8:46 AM wrote: > Ah, thanks for the clarification. > FWIW in case someone looks at this, I think this impacts aarch64, x86, powerpc, and maybe one other architecture. I just don't remember for sure. > If I can be of any help with the porting, let me know. > Thanks. May

RE: C++ math functions not available in namespace std

2023-01-11 Thread Jan.Sommer
Ah, thanks for the clarification. If I can be of any help with the porting, let me know. From: Joel Sherrill Sent: Mittwoch, 11. Januar 2023 14:08 To: Sommer, Jan Cc: rtems-us...@rtems.org Subject: Re: C++ math functions not available in namespace std This happens on the architectures where s

Re: C++ math functions not available in namespace std

2023-01-11 Thread Joel Sherrill
This happens on the architectures where size of long double is not the same as double. The header file disables everything if any math method is missing. I have it on my list to address. I was porting the long double methods from FreeBSD before anyone ran into this but haven't finished On Wed, Ja

C++ math functions not available in namespace std

2023-01-11 Thread Jan.Sommer
Hello and happy New Year, I stumbled upon a slightly weird problem with the current cross-compilers. According to https://en.cppreference.com/w/cpp/numeric/math/fmax std::fmax should be part of for >= C++11. However, if I try to use it, I sometimes get "error: 'fmax' is not a member of 'std';