Liste des Groupes | Revenir à ol advocacy |
rbowman wrote this copyrighted missive and expects royalties:
>On Tue, 26 Mar 2024 17:16:40 -0500, Physfitfreak wrote:>
>Well it says the same thing about AND and OR too, and the two of course>
are used every day in high level programming. So there could be a use
for IMP in high level programming also.
&, ~, |, << and >> are frequently used in C. ^ is used less frequently.
All map directly to i86 instructions. SAL is the same as SHL where SAR
differs from SHR and depends on signed/unsigned. ~ is NOT, 1's complement.
As an aside, C++20 introduces the "spaceship" operator,
operator <=>. It does a three way comparison, a bit like strcmp():
>
lhs <=> rhs returns an object that
>
compares <0 if lhs < rhs
compares >0 if lhs > rhs
and compares ==0 if lhs and rhs are equal/equivalent.
>
Carry on.
I'm not saying there never has been a use but it hasn't had the masses>
clamoring for it either in HLL or machine instructions.
>
That's your new mission. Find a non-trivial use. No long story, no
complicated setup.
Les messages affichés proviennent d'usenet.