[fpc-devel] Cardinal = LongWord on 64bit systems?

Henrick Hellström henrick at streamsec.net
Thu Oct 15 12:03:59 CEST 2009


Graeme Geldenhuys wrote:
> On 15/10/2009, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>   
>> PtrUInt
>>     
>
> So what is the difference between PtrUint and ValUInt? Where would you use each?
>   
* Use PtrUInt when casting pointers to integers and back.
* Use ValUInt when performing operations that would benefit from using 
the largest integer type supported by the CPU. For instance, if you are 
going to xor a large chunk of memory with a constant bit pattern, it is 
most efficient to treat that memory as an array of ValUInt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5342 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20091015/8e79b8da/attachment.bin>


More information about the fpc-devel mailing list