Merge pull request #16246 from kfessel/patch-2

stm32/ptp: avoid creating a new rounding rule
This commit is contained in:
Marian Buschsieweke 2021-03-29 17:06:30 +02:00 committed by GitHub
commit 2e9a80cba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,10 +61,10 @@
#endif /* !STM32_PTPSSIR */
/**
* @brief Return the result of x / y, scientifically rounded
* @brief Return the rounded result of x / y
* @param x Number to divide
* @param y @p x should be divided by this
* @return x/y, scientifically rounded
* @return x/y, rounded to the nearest integer, using "round half up" rule
* @pre Both @p x and @p y are compile time constant integers and the
* expressions are evaluated without side-effects
*/