View Full Version : Trinity Core and Phasing

Exactly how many unique phases can trinitycore's phasing bitmasks hold?

To my knowledge, there is at least 11?

1

2

4

8

16

32

64

128

256

512

1024

Does it go higher?

Thetruecrow

11-04-2013, 01:48 PM

Depends on the Trinitycore and how many bits are assigned to hold the mask.

Easiest way to say is

uint8 = 8

uint16 = 16

uint32 = 32

uint64 = 64

I believe the maximum value can be determined using 2^x where x is the number of bits used for each byte stack, but this also allows you to find out what the value for each phase is by simply putting what phase you want into the equation.

For example, phase 0 is 2^0, which comes out to 1.

4 is 2^4 which comes out to 16.

12 is 2^12 which is also 4096.

This might seem off, but that is because 0 is a usable exponent. In signed bits it's different though, but I'm not sure if negative masking is handled correctly in any core.

Tommy

11-04-2013, 04:09 PM

I calculate by 8 or 2^X.

Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.