Skip to contentSkip to conversation

ARM: Clarify do_div() usage

PATCH New Gregory Fong 1 participant 1 message Oct 28, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Clarify do_div() usage

The comment above do_div() makes it look like the first argument is supposed to be a pointer to the dividend, so add a note to explain further.

---
 arch/arm/include/asm/div64.h | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/include/asm/div64.h +3 -0
index 662c7bd..993489f 100644
@@ -14,6 +14,9 @@
  * 	return remainder;
  * }
  *
+ * Note that "*n" does not mean the first argument should be a
+ * pointer, but rather indicates that the value is modified in-place.
+ *
  * In other words, a 64-bit dividend with a 32-bit divisor producing
  * a 64-bit result and a 32-bit remainder.  To accomplish this optimally
  * we call a special __do_div64 helper with completely non standard
Signature · 1 line
1.9.1