git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 530609a) | patch
Add functions gcd() and lcm() for integer and numeric types.
2020年1月25日 14:00:59 +0000 (14:00 +0000)
2020年1月25日 14:00:59 +0000 (14:00 +0000)
commit 13661ddd7eaec7e2809ff5c29fc14653b6161036
Add functions gcd() and lcm() for integer and numeric types.

These compute the greatest common divisor and least common multiple of
a pair of numbers using the Euclidean algorithm.

Vik Fearing, reviewed by Fabien Coelho.

Discussion: https://postgr.es/m/adbd3e0b-e3f1-5bbc-21db-03caf1cef0f7@2ndquadrant.com
12 files changed:
doc/src/sgml/func.sgml diff | blob | blame | history
src/backend/utils/adt/int.c diff | blob | blame | history
src/backend/utils/adt/int8.c diff | blob | blame | history
src/backend/utils/adt/numeric.c diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/include/catalog/pg_proc.dat diff | blob | blame | history
src/test/regress/expected/int4.out diff | blob | blame | history
src/test/regress/expected/int8.out diff | blob | blame | history
src/test/regress/expected/numeric.out diff | blob | blame | history
src/test/regress/sql/int4.sql diff | blob | blame | history
src/test/regress/sql/int8.sql diff | blob | blame | history
src/test/regress/sql/numeric.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /