About kernel function _CPU_Counter_difference overflow issue
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Jun 18 09:43:17 UTC 2021
On 18/06/2021 10:25, wangqiang3 at sugon.com wrote:
> 1. Is it a bug?
> static inline CPU_Counter_ticks _CPU_Counter_difference(
> CPU_Counter_ticks second,
> CPU_Counter_ticks first)
> {
> return second - first;
> }
The CPU_Counter_ticks is an unsigned integer, so there should be no
issue unless you want to measure intervals geater than the maximum of
this integer type.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the users
mailing list