Prev: OctaOS
Next: DIV overflow
From: Guga on
On Mar 27, 11:25 pm, Herbert Kleebauer <k...(a)unibwm.de> wrote:
> Guga wrote:
>
> > i think i finally got it working.. It seems that the function can
> > works without any size multiple of 32 bits. So it seems to be working
> > on 32bits, 64 bits, 96 bits, 128 bits and so on. (well.. not sure
> > yet.. if it is really working.. i have no way how to check some test
> > number)
>
> > I used the mul routine only. The code is a total mess. so i´ll post it
> > here if it is really running ok.
>
> > In the meanwhile.. can someone pls tell me, if this ascii decimal
> > number: "1699504104824251512520704" have the following hexadecimal
> > form of:
>
> > 0167E2__04D586300__00000000
>
> Yes, but try it also with a value which generates an overflow:
>
> 4294967299
>
> Why don't you also implement the reverse: binary -> decimal
> then you can convert the number back and compare it with
> the original number.- Hide quoted text -
>
> - Show quoted text -

yes... it seems to be working correctly too

The number you proposed returned me:

4294967299 = 01__00000003

Best Regards,

Guga



From: /o//annabee on
P� Wed, 28 Mar 2007 09:44:35 +0200, skrev /\\o//\annabee
<Wannabee(a)thewannabee.org>:

> P� Wed, 28 Mar 2007 09:12:09 +0200, skrev Guga <GugaGTG(a)gmail.com>:
>
>> Ok, guys
>>
>> i think i finally got it working.. It seems that the function can
>> works without any size multiple of 32 bits. So it seems to be working
>> on 32bits, 64 bits, 96 bits, 128 bits and so on. (well.. not sure
>> yet.. if it is really working.. i have no way how to check some test
>> number)
>
> Use Calc. It can do those numbers.
woops. No it seems it cant. Sorry. I assumed...
From: Guga on
On Mar 27, 11:46 pm, /\\\\o//\\annabee <Wanna...(a)thewannabee.org>
wrote:
> På Wed, 28 Mar 2007 09:44:35 +0200, skrev /\\o//\annabee
> <Wanna...(a)thewannabee.org>:
>
> > På Wed, 28 Mar 2007 09:12:09 +0200, skrev Guga <Guga...(a)gmail.com>:
>
> >> Ok, guys
>
> >> i think i finally got it working.. It seems that the function can
> >> works without any size multiple of 32 bits. So it seems to be working
> >> on 32bits, 64 bits, 96 bits, 128 bits and so on. (well.. not sure
> >> yet.. if it is really working.. i have no way how to check some test
> >> number)
>
> > Use Calc. It can do those numbers.
>
> woops. No it seems it cant. Sorry. I assumed...

Calc is only limited to 64 Bit convertion.

Tomorrow i´ll check to see if the result is ok.

I can try a binary convertion now to check back to see if it correct,
because i´m awfully tired. It´s 5:00 AM here :):):)

So... tomorrow i´ll se the results.


Best Regards,

Guga

From: Herbert Kleebauer on
Guga wrote:
>
> The convertion i got from:
> 1699504104824251512520704 = 0167E2__04D586300__00000000
>
> that is the same as on the site.
>
> But.. when i input this:
> 7458784146511699504104824251512520704 = my resultant code is
> 059C8273__06B2C5BFC__0F549DDB__0E000000
>
> that is different from the site. the site it results:
>
> 7458784146511699504104824251512520704 =
> 059C8273__06B2C5C00__00000000__00000000
>
> So.. or mine is more precise, or his is correct.

Increment your input number by one and try again.
The Hex value then also should be on higher.
From: Guga on
On Mar 27, 11:46 pm, /\\\\o//\\annabee <Wanna...(a)thewannabee.org>
wrote:
> På Wed, 28 Mar 2007 09:44:35 +0200, skrev /\\o//\annabee
> <Wanna...(a)thewannabee.org>:
>
> > På Wed, 28 Mar 2007 09:12:09 +0200, skrev Guga <Guga...(a)gmail.com>:
>
> >> Ok, guys
>
> >> i think i finally got it working.. It seems that the function can
> >> works without any size multiple of 32 bits. So it seems to be working
> >> on 32bits, 64 bits, 96 bits, 128 bits and so on. (well.. not sure
> >> yet.. if it is really working.. i have no way how to check some test
> >> number)
>
> > Use Calc. It can do those numbers.
>
> woops. No it seems it cant. Sorry. I assumed...

Calc is only limited to 64 Bit convertion.

Tomorrow i´ll check to see if the result is ok.


I can't try a binary convertion now to check back to see if it
correct,
because i´m awfully tired. It´s 5:00 AM here :):):)


So... tomorrow i´ll se the results.


Best Regards,


Guga

First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Prev: OctaOS
Next: DIV overflow