Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Errr. (x >> 9), but (x & (1 << 10) - 1)? Why??

[DiscordArchive] Errr. (x >> 9), but (x & (1 << 10) - 1)? Why??

[DiscordArchive] Errr. (x >> 9), but (x & (1 << 10) - 1)? Why??

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
06-04-2018, 07:13 AM
#1
Archived author: Quantam • Posted: 2018-06-04T07:13:30.292000+00:00
Original source

Errr. (x >> 9), but (x & (1 << 10) - 1)? Why??
rektbyfaith
06-04-2018, 07:13 AM #1

Archived author: Quantam • Posted: 2018-06-04T07:13:30.292000+00:00
Original source

Errr. (x >> 9), but (x & (1 << 10) - 1)? Why??

rektbyfaith
Administrator
0
06-04-2018, 07:14 AM
#2
Archived author: Quantam • Posted: 2018-06-04T07:14:00.486000+00:00
Original source

What's with the extra bit?
rektbyfaith
06-04-2018, 07:14 AM #2

Archived author: Quantam • Posted: 2018-06-04T07:14:00.486000+00:00
Original source

What's with the extra bit?

rektbyfaith
Administrator
0
06-04-2018, 07:15 AM
#3
Archived author: Deamon • Posted: 2018-06-04T07:15:27.005000+00:00
Original source

actually... discard that piece of code
rektbyfaith
06-04-2018, 07:15 AM #3

Archived author: Deamon • Posted: 2018-06-04T07:15:27.005000+00:00
Original source

actually... discard that piece of code

rektbyfaith
Administrator
0
06-04-2018, 07:15 AM
#4
Archived author: Deamon • Posted: 2018-06-04T07:15:29.287000+00:00
Original source

and
rektbyfaith
06-04-2018, 07:15 AM #4

Archived author: Deamon • Posted: 2018-06-04T07:15:29.287000+00:00
Original source

and

rektbyfaith
Administrator
0
06-04-2018, 07:15 AM
#5
Archived author: Deamon • Posted: 2018-06-04T07:15:52.358000+00:00
Original source

```
To convert a number from Qm.n format to floating point:

1) Convert the number to floating point as if it were an integer, in other words remove the binary point
2) Multiply by 2−n
```
rektbyfaith
06-04-2018, 07:15 AM #5

Archived author: Deamon • Posted: 2018-06-04T07:15:52.358000+00:00
Original source

```
To convert a number from Qm.n format to floating point:

1) Convert the number to floating point as if it were an integer, in other words remove the binary point
2) Multiply by 2−n
```

rektbyfaith
Administrator
0
06-04-2018, 07:16 AM
#6
Archived author: Quantam • Posted: 2018-06-04T07:16:05.594000+00:00
Original source

Right. That's what I was saying
rektbyfaith
06-04-2018, 07:16 AM #6

Archived author: Quantam • Posted: 2018-06-04T07:16:05.594000+00:00
Original source

Right. That's what I was saying

rektbyfaith
Administrator
0
06-04-2018, 07:16 AM
#7
Archived author: Quantam • Posted: 2018-06-04T07:16:18.742000+00:00
Original source

Simple 1 step in Python
rektbyfaith
06-04-2018, 07:16 AM #7

Archived author: Quantam • Posted: 2018-06-04T07:16:18.742000+00:00
Original source

Simple 1 step in Python

rektbyfaith
Administrator
0
06-04-2018, 07:16 AM
#8
Archived author: Deamon • Posted: 2018-06-04T07:16:29.620000+00:00
Original source

fp_6_9 is actually Q7.9
rektbyfaith
06-04-2018, 07:16 AM #8

Archived author: Deamon • Posted: 2018-06-04T07:16:29.620000+00:00
Original source

fp_6_9 is actually Q7.9

rektbyfaith
Administrator
0
06-04-2018, 07:17 AM
#9
Archived author: Quantam • Posted: 2018-06-04T07:17:21.849000+00:00
Original source

Hmm. Something I never really bothered to look up for certain: "Q" means signed, right?
rektbyfaith
06-04-2018, 07:17 AM #9

Archived author: Quantam • Posted: 2018-06-04T07:17:21.849000+00:00
Original source

Hmm. Something I never really bothered to look up for certain: "Q" means signed, right?

rektbyfaith
Administrator
0
06-04-2018, 07:17 AM
#10
Archived author: Quantam • Posted: 2018-06-04T07:17:27.614000+00:00
Original source

Two's complement signed
rektbyfaith
06-04-2018, 07:17 AM #10

Archived author: Quantam • Posted: 2018-06-04T07:17:27.614000+00:00
Original source

Two's complement signed

Pages (3): 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)