]> Repositorios git - scryer-prolog.git/commitdiff
ADDED: sign/1 is now reifiable.
authorMarkus Triska <[email protected]>
Wed, 11 Jan 2023 16:22:38 +0000 (17:22 +0100)
committerMarkus Triska <[email protected]>
Wed, 11 Jan 2023 16:22:38 +0000 (17:22 +0100)
This addresses #1500.

src/lib/clpz.pl

index 207499b22b9a083d72306e3c1839c1b6ab56e215..4871851b5c4cb659df52d1fc185e445ad83c6a52 100644 (file)
@@ -3542,6 +3542,7 @@ parse_reified(E, R, D,
                m(msb(A))     => [function(D,msb,A,R)],
                m(lsb(A))     => [function(D,lsb,A,R)],
                m(popcount(A)) => [function(D,popcount,A,R)],
+               m(sign(A))    => [function(D,sign,A,R)],
                m(A<<B)       => [function(D,<<,A,B,R)],
                m(A>>B)       => [function(D,>>,A,B,R)],
                m(A/\B)       => [function(D,/\,A,B,R)],