Merge branch 'master' of git.osdn.net:/gitroot/joypy/Thun
This commit is contained in:
commit
9ede53f780
|
|
@ -436,6 +436,19 @@ def take(stack):
|
||||||
return x, stack
|
return x, stack
|
||||||
|
|
||||||
|
|
||||||
|
@inscribe
|
||||||
|
@FunctionWrapper
|
||||||
|
def gcd2(stack, expression, dictionary):
|
||||||
|
'''Compiled GCD function.'''
|
||||||
|
(v1, (v2, stack)) = stack
|
||||||
|
tos = True
|
||||||
|
while tos:
|
||||||
|
v3 = v2 % v1
|
||||||
|
tos = v3 > 0
|
||||||
|
(v1, (v2, stack)) = (v3, (v1, stack))
|
||||||
|
return (v2, stack), expression, dictionary
|
||||||
|
|
||||||
|
|
||||||
@inscribe
|
@inscribe
|
||||||
@SimpleFunctionWrapper
|
@SimpleFunctionWrapper
|
||||||
def choice(stack):
|
def choice(stack):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue