Click here to Skip to main content
15,885,767 members

Comments by Alexander Voronin (Top 8 by date)

Alexander Voronin 13-Dec-11 3:28am View    
Deleted
for(t=0;t<19999999;t++); too hard for any CPU.. :)
Why not use System.Threading.Sleep()?

Also it's crap that windows console do not maped to any kind of vide memory. In a REAL text mode you could still use something like:

static public unsafe void VideoPoke ( int addr, byte data) {
byte* ptr = (byte*)0xb80000 + addr;
ptr[addr] = data;
}

to put char into screen :)
Alexander Voronin 15-Nov-11 4:47am View    
Deleted
Could You please provide full source code for this example? I can't get ASP work with this code as is.
Alexander Voronin 27-Sep-11 2:43am View    
Deleted
Use databinding, Luke! 8)
Alexander Voronin 9-Aug-11 10:46am View    
Deleted
rep will take 3+count of dwords CPU clocks to work, you have 5 instructions on each 16 bytes of data, also there is too much work to get data aligned correctly. Unfortunately I did not find clocking for SSE instructions. For short data arrays it's not acceptable. It should be interesting to make some test on this issue for different chunks of data form few bytes to few kilobytes.
Alexander Voronin 9-Aug-11 10:10am View    
Deleted
"rep stosd" much faster.