Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Does anybody know what this operator does in c++?

[DiscordArchive] Does anybody know what this operator does in c++?

[DiscordArchive] Does anybody know what this operator does in c++?

Pages (6): Previous 1 2 3 4 5 6 Next
rektbyfaith
Administrator
0
05-15-2019, 05:10 PM
#21
Archived author: Skarn • Posted: 2019-05-15T17:10:04.485000+00:00
Original source

damn I hate that language so much for that bullshit
rektbyfaith
05-15-2019, 05:10 PM #21

Archived author: Skarn • Posted: 2019-05-15T17:10:04.485000+00:00
Original source

damn I hate that language so much for that bullshit

rektbyfaith
Administrator
0
05-15-2019, 05:10 PM
#22
Archived author: schlumpf • Posted: 2019-05-15T17:10:13.925000+00:00
Original source

yes, but at least not inline assembly and defined by intel, not the vendors
rektbyfaith
05-15-2019, 05:10 PM #22

Archived author: schlumpf • Posted: 2019-05-15T17:10:13.925000+00:00
Original source

yes, but at least not inline assembly and defined by intel, not the vendors

rektbyfaith
Administrator
0
05-15-2019, 05:10 PM
#23
Archived author: schlumpf • Posted: 2019-05-15T17:10:31.726000+00:00
Original source

it isn't a language issue thoguh? you can write perfectly platform independent code that does that.
rektbyfaith
05-15-2019, 05:10 PM #23

Archived author: schlumpf • Posted: 2019-05-15T17:10:31.726000+00:00
Original source

it isn't a language issue thoguh? you can write perfectly platform independent code that does that.

rektbyfaith
Administrator
0
05-15-2019, 05:10 PM
#24
Archived author: schlumpf • Posted: 2019-05-15T17:10:38.281000+00:00
Original source

it is just an utterly low level optimization
rektbyfaith
05-15-2019, 05:10 PM #24

Archived author: schlumpf • Posted: 2019-05-15T17:10:38.281000+00:00
Original source

it is just an utterly low level optimization

rektbyfaith
Administrator
0
05-15-2019, 05:10 PM
#25
Archived author: Skarn • Posted: 2019-05-15T17:10:47.116000+00:00
Original source

yeah, but you are allowed to write non-platform independent code
rektbyfaith
05-15-2019, 05:10 PM #25

Archived author: Skarn • Posted: 2019-05-15T17:10:47.116000+00:00
Original source

yeah, but you are allowed to write non-platform independent code

rektbyfaith
Administrator
0
05-15-2019, 05:10 PM
#26
Archived author: Skarn • Posted: 2019-05-15T17:10:48.748000+00:00
Original source

that's the issue
rektbyfaith
05-15-2019, 05:10 PM #26

Archived author: Skarn • Posted: 2019-05-15T17:10:48.748000+00:00
Original source

that's the issue

rektbyfaith
Administrator
0
05-15-2019, 05:11 PM
#27
Archived author: Skarn • Posted: 2019-05-15T17:11:02.406000+00:00
Original source

and the code that is not using any WInAPI stuff or whatever
rektbyfaith
05-15-2019, 05:11 PM #27

Archived author: Skarn • Posted: 2019-05-15T17:11:02.406000+00:00
Original source

and the code that is not using any WInAPI stuff or whatever

rektbyfaith
Administrator
0
05-15-2019, 05:11 PM
#28
Archived author: Skarn • Posted: 2019-05-15T17:11:23.848000+00:00
Original source

just general purpose code that is not crossplatform because the language gives freedom to compilers in their own implementation of things
rektbyfaith
05-15-2019, 05:11 PM #28

Archived author: Skarn • Posted: 2019-05-15T17:11:23.848000+00:00
Original source

just general purpose code that is not crossplatform because the language gives freedom to compilers in their own implementation of things

rektbyfaith
Administrator
0
05-15-2019, 05:17 PM
#29
Archived author: schlumpf • Posted: 2019-05-15T17:17:24.694000+00:00
Original source

```
unsigned int msb32(unsigned int x)
{
for (unsigned int m = 31; m; --m)
{
if (x & (1 << m)) return m;
}
}
```
rektbyfaith
05-15-2019, 05:17 PM #29

Archived author: schlumpf • Posted: 2019-05-15T17:17:24.694000+00:00
Original source

```
unsigned int msb32(unsigned int x)
{
for (unsigned int m = 31; m; --m)
{
if (x & (1 << m)) return m;
}
}
```

rektbyfaith
Administrator
0
05-15-2019, 05:18 PM
#30
Archived author: schlumpf • Posted: 2019-05-15T17:18:59.354000+00:00
Original source

as you see, it doesn't optimize to a single instruction, which is why the library author decided that he would prefer performance over portability.
rektbyfaith
05-15-2019, 05:18 PM #30

Archived author: schlumpf • Posted: 2019-05-15T17:18:59.354000+00:00
Original source

as you see, it doesn't optimize to a single instruction, which is why the library author decided that he would prefer performance over portability.

Pages (6): Previous 1 2 3 4 5 6 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)