add explanatory comments for do_div(), used when WOLFSSL_LINUXKM.

This commit is contained in:
Daniel Pouzzner
2020-09-08 23:59:58 -05:00
parent 8496a64ed4
commit 453698ba27
2 changed files with 3 additions and 0 deletions

View File

@@ -4562,6 +4562,7 @@ static int mp_div_d (mp_int * a, mp_digit b, mp_int * c, mp_digit * d)
if (w >= b) {
#ifdef WOLFSSL_LINUXKM
t = (mp_digit)w;
/* Linux kernel macro for in-place 64 bit integer division. */
do_div(t, b);
#else
t = (mp_digit)(w / b);