Ok, but you still want to increase the type of variables to something larger as int?
Anton 2014-06-01 14:51 GMT+02:00 Jan Stránský <[email protected]>: > Hi Antom, > I changed my opinion such that using signed types and default value to -1 is > the best choice (as -1 = 0b1111111... in unsigned equivalent, I missed this > feature before). To handle this in python one can use ctypes (c_int and > c_uint) to make the value signed/unsigned) > cheers > Jan > > > > > > 2014-05-26 21:08 GMT+02:00 Anton Gladky <[email protected]>: > >> Hi Jan, >> >> I agree with that. The problem is that we use in many parts of code >> the default mask value -1 [1]. All of them should be changed (probably >> also in some if-constructions). But I do not think it is a difficult, >> "grep/sed" should do thinks well. >> >> [1] >> https://github.com/yade/trunk/blob/master/pkg/dem/NewtonIntegrator.hpp#L79 >> >> Best regards >> >> Anton >> >> >> 2014-05-26 20:54 GMT+02:00 Jan Stránský <[email protected]>: >> > Hello, >> > >> > currently I am running out of size of groupMask (I would need more >> > bits), so >> > I am planning to introduce optional compilation with some larger type. >> > Anyway, even the size is the same, working with the full range of >> > unsigned >> > int bitmask is much more natural than standard signed int. >> > >> > Would anybody be against changing the type to unsigned int with default >> > value UINT_MAX = 0b11111..., i.e. the body would interact with anything >> > by >> > default? >> > >> > Thanks for the feedback >> > Jan >> > >> > _______________________________________________ >> > Mailing list: https://launchpad.net/~yade-dev >> > Post to : [email protected] >> > Unsubscribe : https://launchpad.net/~yade-dev >> > More help : https://help.launchpad.net/ListHelp >> > > > > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-dev > Post to : [email protected] > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

