C to Delphi expressions

From: David (thedbok_at_hotmail.com)
Date: 05/24/04


Date: 24 May 2004 02:14:19 -0700

Hi,

Could someone help me with converting some C expressions to Delphi
please?

1) A=a-(a>>5)-1;

2) a-=(b*c)>>5;

3) a-=(b*c>>5)

4) a=(b+(c<<5))%(b<<5)

What a nightmare!

My maths are pretty terrible anyway, but it's the ">>" , "%" and the
"-=" expressions that have got me confused.

Cheers!

David



Relevant Pages

  • Re: C to Delphi expressions
    ... >> Could someone help me with converting some C expressions to Delphi ... >> What a nightmare! ...
    (comp.lang.pascal.delphi.misc)
  • Re: Proof that Paul Holland was always wrong about me
    ... there are several posts you have made that have ... this is not anything different for/with you david, so indeed, the ... The difference of opinion between us is your assertion that negative ... I say those negative expressions are a result of their own ...
    (alt.med.fibromyalgia)
  • From a JavaCC code to Delphi? About grammars and that stuff that i dont know
    ... This is based in something called JavaCC. ... I want to convert this code to Delphi. ... Java mailing list if can replace this code with regular expressions and ... 3- The guys in the mailing list sayme no to build this with regular ...
    (borland.public.delphi.non-technical)
  • Re: .NET 1.1 "System.Data.VersionNotFoundException" - I need a wor
    ... No, I don't think that is a problem, Brad. ... This code is straight out of David ... identity column after the insert is where the error is happening? ... >> expressions before persisting is my next attempt at a workaround. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Modeling question...
    ... David BL wrote: ... expressions) are not themselves represented using relations. ... Just because some syntax doesn't look like a relation doesn't mean that the result isn't defined by relations. ... A relation is a mathematical construction. ...
    (comp.databases.theory)