Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] can we please first agree on one definition of what an `fp_6_9` is before we discuss optimizations?

[DiscordArchive] can we please first agree on one definition of what an `fp_6_9` is before we discuss optimizations?

[DiscordArchive] can we please first agree on one definition of what an `fp_6_9` is before we discuss optimizations?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
06-05-2018, 01:04 PM
#11
Archived author: schlumpf • Posted: 2018-06-05T13:04:53.786000+00:00
Original source

Anyway. If I understood the above stuff correctly, and since you didn't object to my assumptions about t he formula, https://godbolt.org/g/Huk9Ha disagrees about it being correct: On a 16 bit `1:6:9` number, `1 << 15 | 1 << 9` should be equivalent to `-1.f`.
The output of the program is
```
1 1 1 1
-1 -1 65 -63
```
[Embed: Compiler Explorer]
Compiler Explorer is an interactive online compiler which shows the assembly output of compiled C, C++, Rust, Go, D, Haskell, Swift & Pascal code.
https://godbolt.org/g/Huk9Ha
rektbyfaith
06-05-2018, 01:04 PM #11

Archived author: schlumpf • Posted: 2018-06-05T13:04:53.786000+00:00
Original source

Anyway. If I understood the above stuff correctly, and since you didn't object to my assumptions about t he formula, https://godbolt.org/g/Huk9Ha disagrees about it being correct: On a 16 bit `1:6:9` number, `1 << 15 | 1 << 9` should be equivalent to `-1.f`.
The output of the program is
```
1 1 1 1
-1 -1 65 -63
```
[Embed: Compiler Explorer]
Compiler Explorer is an interactive online compiler which shows the assembly output of compiled C, C++, Rust, Go, D, Haskell, Swift & Pascal code.
https://godbolt.org/g/Huk9Ha

rektbyfaith
Administrator
0
06-05-2018, 01:04 PM
#12
Archived author: Deamon • Posted: 2018-06-05T13:04:57.761000+00:00
Original source

while normal people use additional code
rektbyfaith
06-05-2018, 01:04 PM #12

Archived author: Deamon • Posted: 2018-06-05T13:04:57.761000+00:00
Original source

while normal people use additional code

rektbyfaith
Administrator
0
06-05-2018, 01:05 PM
#13
Archived author: schlumpf • Posted: 2018-06-05T13:05:59.124000+00:00
Original source

Please correct me about my implementation of `f2` and `f3` based on your messages being wrong, or tell me why `f1` is wrong.
rektbyfaith
06-05-2018, 01:05 PM #13

Archived author: schlumpf • Posted: 2018-06-05T13:05:59.124000+00:00
Original source

Please correct me about my implementation of `f2` and `f3` based on your messages being wrong, or tell me why `f1` is wrong.

rektbyfaith
Administrator
0
06-05-2018, 01:06 PM
#14
Archived author: schlumpf • Posted: 2018-06-05T13:06:12.258000+00:00
Original source

Note how the claim "should be equivalent to just dividing" is wrong as seen here.
rektbyfaith
06-05-2018, 01:06 PM #14

Archived author: schlumpf • Posted: 2018-06-05T13:06:12.258000+00:00
Original source

Note how the claim "should be equivalent to just dividing" is wrong as seen here.

rektbyfaith
Administrator
0
06-05-2018, 01:07 PM
#15
Archived author: Deamon • Posted: 2018-06-05T13:07:56.856000+00:00
Original source

yes, it's not just dividing, sadly
rektbyfaith
06-05-2018, 01:07 PM #15

Archived author: Deamon • Posted: 2018-06-05T13:07:56.856000+00:00
Original source

yes, it's not just dividing, sadly

rektbyfaith
Administrator
0
06-05-2018, 01:09 PM
#16
Archived author: schlumpf • Posted: 2018-06-05T13:09:02.668000+00:00
Original source

that explains `f3` being wrong. what about `f2`?
rektbyfaith
06-05-2018, 01:09 PM #16

Archived author: schlumpf • Posted: 2018-06-05T13:09:02.668000+00:00
Original source

that explains `f3` being wrong. what about `f2`?

Pages (2): Previous 1 2
Recently Browsing
 
Recently Browsing