Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Writing Bits object to disk
Re: Writing Bits object to disk [message #48099 is a reply to message #48097] Tue, 16 May 2017 20:17 Go to previous message
crydev is currently offline  crydev
Messages: 149
Registered: October 2012
Location: Netherlands
Experienced Member
mirek wrote on Tue, 16 May 2017 13:12
Added these:

void Set(int i, dword bits, int count);
void Set64(int i, uint64 bits, int count);
void SetN(int i, int count, bool b = true);

Slight disadvantage is that while Set detects "aligned" operation (i % 32 == 0, count == 32), there is some penalty, but it seems to be quite small (about 3-4 opcodes). I guess if you want to be faster than that, you have to use Raw....


Hi Mirek,

The changes look wonderful! Thanks a bunch. Smile

crydev
Previous Topic: RegExp this'n that
Next Topic: stable sort bug.. or looks like it
Goto Forum:
  


Current Time: Fri Jul 28 14:56:27 CEST 2017

Total time taken to generate the page: 0.01042 seconds