[DiscordArchive] Does anybody know what this operator does in c++?
[DiscordArchive] Does anybody know what this operator does in c++?
Archived author: Skarn • Posted: 2019-05-15T17:05:04.480000+00:00
Original source
Does anybody know what this operator does in c++?
Archived author: Skarn • Posted: 2019-05-15T17:05:15.491000+00:00
Original source
```cpp
asm("\tbsr %1, %0\n" : "=r"(layersW) : "r"(width));
asm("\tbsr %1, %0\n" : "=r"(layersH) : "r"(height));
```
Archived author: schlumpf • Posted: 2019-05-15T17:05:26.251000+00:00
Original source
not c++ but a compiler specific extension
Archived author: Skarn • Posted: 2019-05-15T17:05:26.416000+00:00
Original source
The compiler says : is a syntax error
Archived author: Skarn • Posted: 2019-05-15T17:05:38.735000+00:00
Original source
okay
Archived author: schlumpf • Posted: 2019-05-15T17:05:39.889000+00:00
Original source
so you're likely using gcc syntax in msvc or around
Archived author: Skarn • Posted: 2019-05-15T17:05:44.872000+00:00
Original source
yes
Archived author: Skarn • Posted: 2019-05-15T17:05:49.874000+00:00
Original source
It fails on msvc
Archived author: Skarn • Posted: 2019-05-15T17:06:00.459000+00:00
Original source
Can that be reworked to compile everywhere?
Archived author: schlumpf • Posted: 2019-05-15T17:06:19.116000+00:00
Original source
not really, no, i doN't think they agree on a specific syntax.