From cf7078ab0a57aac25e53f9bcc7555ef3b30af2fd Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Mon, 29 Mar 2021 13:03:50 +0200 Subject: [PATCH] stm32/ptp: avoid creating a new rounding rule --- cpu/stm32/periph/ptp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/stm32/periph/ptp.c b/cpu/stm32/periph/ptp.c index 1dc7a34a97..1f53780405 100644 --- a/cpu/stm32/periph/ptp.c +++ b/cpu/stm32/periph/ptp.c @@ -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 */