[#BN_div_word]
= BN&lowbar;div&lowbar;word
:mrdocs:

Divide `a` by word `w` in place and return the remainder&period;

== Synopsis

Declared in `&lt;openssl&sol;bn&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned long
BN&lowbar;div&lowbar;word(
    xref:BIGNUM.adoc[BIGNUM]* a,
    unsigned long w);
----

== Return Value

Remainder, or (BN&lowbar;ULONG)&hyphen;1 on error (for example `w` is 0)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| Dividend updated to the quotient (sign preserved)&period;
| *w*
| Non&hyphen;zero divisor word&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
