The Wiert Corner – irregular stream of Wiert stuff

Jeroen Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20120216-Word-Convert-To-Text

    MPS_6399

    MPS_6398

    More Photos
  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 384 other followers

Archive for November 22nd, 2011

In Delphi SHR is a SHR; in C >> is a SAR or SHR (via: Shift Right: Delphi vs C | Galfars Lair)

Posted by jpluimers on 2011/11/22

I never knew that >> in C was a SAR/SHR depending if the underlying integer type was signed/unsigned.

In Delphi the SHR is always a SHR operation: it never takes into account the sign.

–jeroen

via: Shift Right: Delphi vs C | Galfars Lair.

Posted in Delphi, Development, Software Development | 2 Comments »

 
Follow

Get every new post delivered to your Inbox.

Join 384 other followers