diff options
author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2020-01-25 14:00:59 +0000 |
---|---|---|
committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2020-01-25 14:00:59 +0000 |
commit | 13661ddd7eaec7e2809ff5c29fc14653b6161036 (patch) | |
tree | 478835d5b14b5b5c304face1c351079495cdbb38 /src/backend/utils/adt/jsonfuncs.c | |
parent | 530609aa4263bee5b5ca205d83f0dbad098d0465 (diff) | |
download | postgresql-13661ddd7eaec7e2809ff5c29fc14653b6161036.tar.gz postgresql-13661ddd7eaec7e2809ff5c29fc14653b6161036.zip |
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
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions