Add wxGCD() helper function.

It is needed in wxMSW code and it looks like it could be useful to the library
users, so make it public.

See #16254.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-08-07 21:03:25 +00:00
parent 3c7ba39135
commit e871a2157d
3 changed files with 62 additions and 2 deletions

View File

@@ -165,5 +165,7 @@ inline double wxRadToDeg(double rad) { return (rad * 180.0) / M_PI; }
#endif
#endif /* wxUSE_APPLE_IEEE */
/* Compute the greatest common divisor of two positive integers */
WXDLLIMPEXP_BASE unsigned int wxGCD(unsigned int u, unsigned int v);
#endif /* _WX_MATH_H_ */