UNIT64? or UINT64?
UINT64 is a unsigned Quad, not available in PB, but you can use Quad, is
the same memory but not the same valuerange
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
The "i64" and "ui64" extensions are non-standard, Microsoft compiler specific extensions used for specifing 64bit integer constants.
well, crap....I was in the progress of converting the managment portion of the Windows Filtering Platform API for Vista and Server 2008, for use with PureBasic. Was going pretty smooth for a bit, had some basic functions working too, then I encountered the 'ui64' thing. So...if its microsoft compiler specific...well...just Great!
I know this thread is a bit old, but rather then starting a new one for the same subject...
I'm just getting back to working on the Windows Filtering Platform API for Vista, had put it aside for a while. I can't figure out how to get a useful value from the ui64 thing. Any ideas anyone?
shifting will work differently too, the sign bit doesn't shift with the rest of the value (I don't think, something like that)
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
what is the ASM command for unsigned shifting? that would be handy
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
"In 3D there is never enough Time to do Things right,
but there's always enough Time to make them *look* right." "psssst! i steal signatures... don't tell anyone! "
don't know by heart... read it in a topic here not long ago.
> isnt the result of lpperformancecounter also a UINT64 ?
for handling a counter, it is meaningless if you notate it signed or unsigned.
handling the overflow is almost the same.
tho I'm unsure right now, if an overflow of some 64bit counter even can occur within the next thousand years...