Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68e51252 authored by Randy Dunlap's avatar Randy Dunlap Committed by Jonathan Corbet
Browse files

Documentation: add kernel-api section on Math functions



Add a kernel-api section on Math Functions.

Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 341e9a32
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -103,6 +103,30 @@ idr/ida Functions
.. kernel-doc:: lib/idr.c
   :export:

Math Functions in Linux
=======================

Base 2 log and power Functions
------------------------------

.. kernel-doc:: include/linux/log2.h
   :internal:

Division Functions
------------------

.. kernel-doc:: include/asm-generic/div64.h
   :functions: do_div

.. kernel-doc:: include/linux/math64.h
   :internal:

.. kernel-doc:: lib/div64.c
   :functions: div_s64_rem div64_u64_rem div64_u64 div64_s64

.. kernel-doc:: lib/gcd.c
   :export:

Memory Management in Linux
==========================