[PD] share-mem lib

Cyrille Henry ch at chnry.net
Mon Feb 25 16:52:50 CET 2013


ok, thanks for the explanation
cheers
c


Le 25/02/2013 16:48, IOhannes m zmoelnig a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2013-02-25 16:43, Cyrille Henry wrote:
>>
>>
>> Le 25/02/2013 16:17, IOhannes m zmoelnig a écrit : On 2013-02-25
>> 15:54, Cyrille Henry wrote:
>>>>> on the other hand, pix_share_read / pix_share_write are
>>>>> dedicated to share pix data. but the id provide is not the
>>>>> shmid.
>>
>> right, it is a hashed version of the shmid, in order to make it
>> more easily usable within Pd.
>>> i'm curious : what make the hash shmid more usable than the
>>> integer Id? i used the int id for shmem because i did not find
>>> any good reason not to.
>>
>
> without checking the actual code:
> the shmid can be any 32bit integer, e.g. 156823457
> since Pd uses 32bit single precision floats, the given id might not be
> representable by a Pd-atom.
>
> the hash i'm using is only 16bit, and thus always representable by a
> Pd-atom.
>
> ftgmasdr
> IOhannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlErh9UACgkQkX2Xpv6ydvQD5ACdGKqjFP2lJolNwudvE98KbrVY
> ZZsAoO2z1R2MnSEhKg4txvkqUrpIKDsz
> =f6Zo
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list