OSDN Git Service
(root)
/
roast
/
roast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a206b83
)
math/gcd_lcm.hpp Add.
author
Myun2
<myun2@nwhite.info>
Fri, 15 Oct 2010 15:31:16 +0000
(
00:31
+0900)
committer
Myun2
<myun2@nwhite.info>
Fri, 15 Oct 2010 15:31:35 +0000
(
00:31
+0900)
roast/include/roast/math/gcd_lcm.hpp
[new file with mode: 0644]
patch
|
blob
diff --git a/roast/include/roast/math/gcd_lcm.hpp
b/roast/include/roast/math/gcd_lcm.hpp
new file mode 100644
(file)
index 0000000..
1b4a63c
--- /dev/null
+++ b/
roast/include/roast/math/gcd_lcm.hpp
@@ -0,0
+1,20
@@
+// Roast+ License
+
+/*
+
+*/
+#ifndef __SFJP_ROAST__math__gcd_lcm_HPP__
+#define __SFJP_ROAST__math__gcd_lcm_HPP__
+
+namespace roast
+{
+ template <typename T>
+ T gcd_(T a, T b)
+ {
+ }
+
+ int gcd(int a, int b){ return gcd_(a,b); }
+
+}//end of namespace roast
+
+#endif//__SFJP_ROAST__math__gcd_lcm_HPP__