English
Forum

Where's my bit towards? If the | Swallowed???

 
me missing, faith I, one bit (hopefully not only by a lockere screw causes) =>
CompileMarkSeparation
Declare LongInt1&,LongInt2&,BitCount%
Window 0,0-%MAXX,%MAXY
LET LongInt1&=+(2^31)-1
Print "LongInt-Wert von (2^31)-1=";LongInt1&
Let BitCount%=0

While Bitcount%<32

    Print Bitcount%;"=";@Testbit(LongInt1&,Bitcount%)
    inc Bitcount%

wend

LET LONGINT2&=0
Print ""
Print "Vor dem Setzen des Bits: ";LONGINT2&
LET LongInt2&=@Setbit(LongInt2&,31,1)
PRINT "Letztes Bit gesetzt: ";LongInt2&
Print "Bit 31=";@Testbit(LongInt2&,31)
LET LongInt2&=-(2^31)+1
Locate 0,40
Print "LongInt-Wert von -(2^31)+1=";LongInt2&
Let Bitcount%=0

While Bitcount%<32

    Locate Bitcount%+2,40
    Print Bitcount%;"=";@Testbit(LongInt2&,Bitcount%)
    inc Bitcount%

wend

Waitinput
 
05/03/05  
 




Frank
Abbing
Hi,

the latest bit one LongInt is always the omen-bit. is it staid, then is the number negative. is not staid, then is the number positively. You can means through set this Bits a number negativieren or on this bit discern, whether a number negative is.
 
05/03/05  
 



Hello Frank...

this is me clear (hereon, that the not huntertprozentig is correct, whistling we now both time), still where is bit 31 because there??? with Testbit can it itself apparently not read - or have I it in geistiger Umnachtung only redeploying?

look you time whom View source supra and the values on and let whom Blödsinn except eight, whom I in Rolands Forum posted have.
there I had before with mere positive ULARGE_INTEGER Structures calculated and the View source based hereon.
 
05/04/05  
 



I try time my trouble yet something accurate To describe:

-2147483648=$80000000=%10000000000000000000000000000000 (GENERIC_READ z.B.)
=> bit 31 staid. If I try, bit 31 with TestBit auszulesen, gives me TestBit 0 back. Why??? Selbes trouble How with |????
 
05/04/05  
 



Hello Profaner...

the bit goes in Profan lost. everything important moreover here: [...] 
 
05/04/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.634 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 2 subscriber:

unbekannt (4x)
Frank Abbing (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie