Botan
1.11.15
|
00001 /* 00002 * Division 00003 * (C) 1999-2007 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_DIVISON_ALGORITHM_H__ 00009 #define BOTAN_DIVISON_ALGORITHM_H__ 00010 00011 #include <botan/bigint.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * BigInt Division 00017 * @param x an integer 00018 * @param y a non-zero integer 00019 * @param q will be set to x / y 00020 * @param r will be set to x % y 00021 */ 00022 void BOTAN_DLL divide(const BigInt& x, 00023 const BigInt& y, 00024 BigInt& q, 00025 BigInt& r); 00026 00027 } 00028 00029 #endif