m68k: math-emu: Replace external declarations by header inclusion
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 17 Aug 2023 14:44:51 +0000 (16:44 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 6 Oct 2023 08:03:01 +0000 (10:03 +0200)
commit11dd57cc15fd4f42b797357017a1119a49449f97
tree0dcf6a5d774096be94f5e361f6ad6e229f66822f
parent7e67c75d405b5a3b66ce0af267320ed60e319dd0
m68k: math-emu: Replace external declarations by header inclusion

Replace the (incorrect) external declarations by an inclusion of the
appropriate header file.

Semantically, the "src" parameters of the various fp_*() functions are
constant.  However, they cannot actually be const as most of these
functions perform a normalization step first.  As the fp_one constant
passed to fp_add() is already normalized, it is safe to cast away its
constness when making the function call.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/163bc2f64b5a3dd7b96a12aaca6733b408ddc880.1692283195.git.geert@linux-m68k.org
arch/m68k/math-emu/fp_log.c