[#BN_div_recp]
= BN&lowbar;div&lowbar;recp
:mrdocs:

Divide `m` by the reciprocal modulus in `recp,` producing quotient and remainder&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
BN&lowbar;div&lowbar;recp(
    xref:BIGNUM.adoc[BIGNUM]* dv,
    xref:BIGNUM.adoc[BIGNUM]* rem,
    xref:BIGNUM.adoc[BIGNUM] const* m,
    xref:BN_RECP_CTX.adoc[BN&lowbar;RECP&lowbar;CTX]* recp,
    xref:BN_CTX.adoc[BN&lowbar;CTX]* ctx);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dv*
| Destination for the quotient, or NULL if not required&period;
| *rem*
| Destination for the remainder, or NULL if not required&period;
| *m*
| Dividend&period;
| *recp*
| Reciprocal context previously set up for the divisor&period;
| *ctx*
| BN&lowbar;CTX for temporaries&period;
|===


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