Click here to Skip to main content
16,005,080 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Add a Font in Setup Project Pin
Rupesh Kumar Swami10-Feb-08 20:18
Rupesh Kumar Swami10-Feb-08 20:18 
AnswerRe: How to Add a Font in Setup Project Pin
Giorgi Dalakishvili10-Feb-08 20:25
mentorGiorgi Dalakishvili10-Feb-08 20:25 
GeneralRe: How to Add a Font in Setup Project Pin
Rupesh Kumar Swami10-Feb-08 20:39
Rupesh Kumar Swami10-Feb-08 20:39 
GeneralAn unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll in c# Pin
ramyanaidu10-Feb-08 18:36
ramyanaidu10-Feb-08 18:36 
GeneralRe: An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll in c# Pin
Martin#10-Feb-08 20:24
Martin#10-Feb-08 20:24 
GeneralPrinting 128-bit integer in decimal Pin
Skippums10-Feb-08 15:59
Skippums10-Feb-08 15:59 
GeneralRe: Printing 128-bit integer in decimal Pin
Luc Pattyn11-Feb-08 1:41
sitebuilderLuc Pattyn11-Feb-08 1:41 
GeneralRe: Printing 128-bit integer in decimal Pin
Skippums11-Feb-08 5:20
Skippums11-Feb-08 5:20 
I am just using the operator precedence I found here[^], which is basically the following (for my purpose)...
* / % (Multiplicative)
+ -   (Additive)
>> << (Shift)
| & ^ (Bitwise)
However, it would definitely add readability if I were to include parenthesis, so I will probably fill those in eventually. The thing that interests me most from your post is the more efficient printing algorithm. My current division algorithm takes time O(n^2), where 'n' is the difference between the number of bits in the divisor and the number of bits in the dividend. Therefore, I attempt to minimize both the number of divisions and the time it takes per division by dividing by the largest multiple of 10 <= 2^64. I don't really understand how I could divide by 10 and get faster results, so a brief explanation of how you implement such an algorithm would really be appreciated. Oh, and I did do some arithmetic with both division and moduli, and based on my incorrect results printing the numbers in decimal, I discovered that the following yields errors:
TestUInt foo = new TestUInt(1, 2); // 0x10000000000000002
TestUInt quotient = foo / 1000; // Returns 0x2 (Should be 0x4189374BC6A7EF)
TestUInt modulus  = foo % 1000; // Returns 0x0 (Should be 0x26A)
Thanks for the pointers,

Sounds like somebody's got a case of the Mondays

-Jeff

GeneralRe: Printing 128-bit integer in decimal Pin
Luc Pattyn11-Feb-08 6:06
sitebuilderLuc Pattyn11-Feb-08 6:06 
AnswerRe: Printing 128-bit integer in decimal Pin
Skippums11-Feb-08 5:50
Skippums11-Feb-08 5:50 
QuestionBackground image refreshing on Form resizing? Pin
Jacob Dixon10-Feb-08 13:19
Jacob Dixon10-Feb-08 13:19 
AnswerRe: Background image refreshing on Form resizing? Pin
Jacob Dixon10-Feb-08 13:27
Jacob Dixon10-Feb-08 13:27 
QuestionNew gradient background for Button...? Pin
Edmundisme10-Feb-08 11:23
Edmundisme10-Feb-08 11:23 
AnswerRe: New gradient background for Button...? Pin
Joachim Kerschbaumer10-Feb-08 21:48
Joachim Kerschbaumer10-Feb-08 21:48 
GeneralRe: New gradient background for Button...? Pin
Edmundisme11-Feb-08 7:37
Edmundisme11-Feb-08 7:37 
AnswerRe: New gradient background for Button...? Pin
Abhijit Jana10-Feb-08 22:03
professionalAbhijit Jana10-Feb-08 22:03 
GeneralRe: New gradient background for Button...? Pin
Edmundisme11-Feb-08 7:38
Edmundisme11-Feb-08 7:38 
AnswerRe: New gradient background for Button...? Pin
Ravenet11-Feb-08 3:13
Ravenet11-Feb-08 3:13 
GeneralRe: New gradient background for Button...? Pin
Edmundisme11-Feb-08 7:38
Edmundisme11-Feb-08 7:38 
GeneralAssigning a control back to the main form in the DragOver method... [modified] Pin
new_phoenix10-Feb-08 9:13
new_phoenix10-Feb-08 9:13 
GeneralApplication of Digital Dictionary Pin
Abdul8510-Feb-08 7:23
Abdul8510-Feb-08 7:23 
GeneralDouble post - please ignore Pin
pmarfleet10-Feb-08 7:51
pmarfleet10-Feb-08 7:51 
GeneralBest approach Pin
pokabot10-Feb-08 6:41
pokabot10-Feb-08 6:41 
GeneralRe: Best approach Pin
Pete O'Hanlon10-Feb-08 10:10
mvePete O'Hanlon10-Feb-08 10:10 
GeneralRe: Best approach Pin
pokabot10-Feb-08 10:30
pokabot10-Feb-08 10:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.