Re: Bit-manipulation in ISO Prolog

From: Pere Montolio (tmp123_at_menta.net)
Date: 08/17/04

  • Next message: Nameless: "Re: Bit-manipulation in ISO Prolog"
    Date: 17 Aug 2004 03:14:16 -0700
    
    

    > "Nameless" <news.mail@chello.no> wrote in message
    > ...

    I assume you know this answer for "xor":

    xor(X,Y,Z) :- Z is ( (\ X) /\ Y ) \/ ( (\ Y) /\ X ).

    (hope no typo mistakes).

    and pray that you compiler/interpreter of prolog has a good optimizer.

    (note: in general I look always for compilers with and easy interface
    to C, in order to be able to add small low level functions).

    I agree it is not a great answer, but it is all I have.

    PS: Do you known any good reason to do not post with a real name?


  • Next message: Nameless: "Re: Bit-manipulation in ISO Prolog"