Click here to Skip to main content
15,899,935 members
Home / Discussions / C#
   

C#

 
GeneralRe: Fast Copy\Cast of an array Pin
Anonymous1-Oct-05 9:23
Anonymous1-Oct-05 9:23 
GeneralRe: Fast Copy\Cast of an array Pin
leppie1-Oct-05 16:11
leppie1-Oct-05 16:11 
QuestionMy Source Code is visible to all Pin
28-Sep-05 19:15
suss28-Sep-05 19:15 
AnswerRe: My Source Code is visible to all Pin
Ashok Dhamija28-Sep-05 19:31
Ashok Dhamija28-Sep-05 19:31 
GeneralRe: My Source Code is visible to all Pin
28-Sep-05 19:40
suss28-Sep-05 19:40 
GeneralRe: My Source Code is visible to all Pin
Ashok Dhamija29-Sep-05 0:18
Ashok Dhamija29-Sep-05 0:18 
GeneralRe: My Source Code is visible to all Pin
Dave Kreskowiak29-Sep-05 0:58
mveDave Kreskowiak29-Sep-05 0:58 
GeneralRe: My Source Code is visible to all Pin
S. Senthil Kumar29-Sep-05 4:48
S. Senthil Kumar29-Sep-05 4:48 
GeneralRe: My Source Code is visible to all Pin
sreejith ss nair28-Sep-05 20:26
sreejith ss nair28-Sep-05 20:26 
AnswerRe: My Source Code is visible to all Pin
leppie29-Sep-05 1:12
leppie29-Sep-05 1:12 
AnswerRe: My Source Code is visible to all Pin
Heinz_29-Sep-05 6:03
Heinz_29-Sep-05 6:03 
AnswerRe: My Source Code is visible to all Pin
Kythen29-Sep-05 9:36
Kythen29-Sep-05 9:36 
QuestionCan C# exist without dotnet?? Pin
SIJUTHOMASP28-Sep-05 17:44
professionalSIJUTHOMASP28-Sep-05 17:44 
AnswerRe: Can C# exist without dotnet?? Pin
Heinz_28-Sep-05 19:07
Heinz_28-Sep-05 19:07 
AnswerRe: Can C# exist without dotnet?? Pin
Andrew Kirillov28-Sep-05 19:07
Andrew Kirillov28-Sep-05 19:07 
GeneralRe: Can C# exist without dotnet?? Pin
SIJUTHOMASP28-Sep-05 20:56
professionalSIJUTHOMASP28-Sep-05 20:56 
GeneralRe: Can C# exist without dotnet?? Pin
Colin Angus Mackay28-Sep-05 21:23
Colin Angus Mackay28-Sep-05 21:23 
GeneralRe: Can C# exist without dotnet?? Pin
turbochimp28-Sep-05 22:29
turbochimp28-Sep-05 22:29 
GeneralRe: Can C# exist without dotnet?? Pin
SIJUTHOMASP28-Sep-05 23:47
professionalSIJUTHOMASP28-Sep-05 23:47 
GeneralRe: Can C# exist without dotnet?? Pin
Dave Kreskowiak29-Sep-05 0:50
mveDave Kreskowiak29-Sep-05 0:50 
AnswerRe: Can C# exist without dotnet?? Pin
Dave Everett30-Sep-05 9:41
Dave Everett30-Sep-05 9:41 
Questionoperator overload Pin
sduhd28-Sep-05 16:20
sduhd28-Sep-05 16:20 
AnswerRe: operator overload Pin
Guffa28-Sep-05 20:53
Guffa28-Sep-05 20:53 
GeneralRe: operator overload Pin
sduhd29-Sep-05 17:35
sduhd29-Sep-05 17:35 
GeneralRe: operator overload Pin
Guffa30-Sep-05 5:09
Guffa30-Sep-05 5:09 
Here is the compiled code:

x = double.MaxValue;<br />
<br />
00000020  mov         dword ptr [ebp-10h],0FFFFFFFFh<br />
00000027  mov         dword ptr [ebp-0Ch],7FEFFFFFh<br />
<br />
y = double.MaxValue;<br />
<br />
0000002e  mov         dword ptr [ebp-18h],0FFFFFFFFh<br />
00000035  mov         dword ptr [ebp-14h],7FEFFFFFh<br />
<br />
z = x + y - y;<br />
<br />
0000003c  fld         qword ptr [ebp-10h]<br />
0000003f  fadd        qword ptr [ebp-18h]<br />
00000042  fsub        qword ptr [ebp-18h]<br />
00000045  fstp        qword ptr [ebp-20h]


The actual calculation is done in the FPU, storing the result of the first calculation internally. It looks like the datatype used internally can handle larger values than a double, as the result of the calculation is correct.

---
b { font-weight: normal; }

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.