Bitwise Operations

Started by Mötley, May 05, 2016, 01:55 PM

Previous topic - Next topic

Mötley

So how does the VCMP server.exe work?

As in if I use a 32 bit server.exe then my limit is 32?
If I use a 64 bit server.exe then my limit is 64?

Or are they both 32 bit secretly?

does this go by digits, numbers, or lines?

I have never really actually asked to clear things up.

Example of usage

enum Admin
{
Mute = 4,
Unmute = 4,
Kick = 5,
Ban = 5,
Unban = 5,
Setlevel = 9
}

Thijn



.

.

Mötley

Okay either I learned wrongly about Bitwise Operations by Vortex, Or either S.L.C does not know...

Thijn

I can tell you it's probably the first one :P

Mötley

I will contact Vortex to see what he says. I doubt he would post a incorrect tutorial....

But you never know....

KAKAN

well, that's all about integer. To be simple :D
For ex:
After 40 days of running the server, if you use GetTickCount it would return a wrong number on a x32 server since the integer would be too large to handle, more than 32 in length, it will take many months or even years on a x64 system.
oh no

Mötley

#8
So basically Vortex is correct .

This has helped clear up my mind.
I will leave the topic open for any more vital discussions

I am still curious as to is a 64 bit server secretly a 32 bit with 64 bit support.

@Stormeus.

DizzasTeR

Quote from: Mötley on May 05, 2016, 04:22 PM...is a 64 bit server secretly a 32 bit with 64 bit support...

Made my mood.

Thijn

Quote from: Mötley on May 05, 2016, 04:22 PMI am still curious as to is a 64 bit server secretly a 32 bit with 64 bit support.
First you say you get it. Now you say this ridiculous statement. Are you sure you get it, because it doesn't seem like you do :P

KAKAN

Quote from: Thijn on May 05, 2016, 05:38 PM
Quote from: Mötley on May 05, 2016, 04:22 PMI am still curious as to is a 64 bit server secretly a 32 bit with 64 bit support.
First you say you get it. Now you say this ridiculous statement. Are you sure you get it, because it doesn't seem like you do :P
He thinks that the x32 server is renamed as x64 and published here :D
oh no

Mötley

What I am saying is "Even if the server says 64 bit" It doesn't always mean 64 bit, many programmers will just add support from the 32 bit edition. So I need to know what the server.exe really is in the 64 bit build. If yes then that is all I need to know,  More than likely it's 64 bit.
This. Is vital believe it or not for those that do not comprehend .

Do I need to go in depth? I prefer no.

.

You can always check.

if (_intsize_ == 8) print("64 bit integers");
else print("32 bit integers");
.

Mötley

Quote from: . on May 05, 2016, 06:38 PMYou can always check.

if (_intsize_ == 8) print("64 bit integers");
else print("32 bit integers");

Honestly I only need to know for a release I am working on as I have 32 bit

Can not test with 64 bit