DMD 1.019 and 2.003 releases

Walter Bright newshound1 at digitalmars.com
Tue Jul 24 15:40:57 PDT 2007


BCS wrote:
> Reply to Walter,
> 
>>
>> c += 'a' - 'A';   // to lower case
> 
> this is safer and faster (Ihink)
> 
> c |= 0b0010_0000;


On modern processors, there is no speed difference between the two. I 
prefer the former only because I can't remember which bit it is <g>.



More information about the Digitalmars-d-announce mailing list