Click here to Skip to main content
13,763,725 members

C / C++ / MFC

 
Questionmapping pthread id to custom id Pin
meerokh13-Jul-18 6:51
membermeerokh13-Jul-18 6:51 
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan13-Jul-18 21:48
protectorRichard MacCutchan13-Jul-18 21:48 
GeneralRe: mapping pthread id to custom id Pin
meerokh14-Jul-18 1:24
membermeerokh14-Jul-18 1:24 
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan14-Jul-18 4:36
protectorRichard MacCutchan14-Jul-18 4:36 
QuestionHow to disable a HTML Input in c# Pin
Member 1219465611-Jul-18 16:50
memberMember 1219465611-Jul-18 16:50 
AnswerRe: How to disable a HTML Input in c# Pin
Bryian Tan11-Jul-18 18:30
mvpBryian Tan11-Jul-18 18:30 
Questionc++ - std :: map - Is my idea too dirty? Pin
0x01AA11-Jul-18 9:40
professional0x01AA11-Jul-18 9:40 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
harold aptroot11-Jul-18 10:48
memberharold aptroot11-Jul-18 10:48 
In 64bit code (so using XMM registers) it'll probably work, unless any DLL secretly changes a rounding mode on you and "forgets" to set it back. In 32bit code (usually using the x87 FPU stack), who knows? The danger there as usual is that keeping a double in an FPU register keeps it at whatever value was actually computed (which depending on how stod works internally may have bits set in the part of the 64bit significand that extends beyond the 53 bits you usually get) while storing it to memory and reloading it changes the value, and this is something that compilers think is a normal part of how they work so they do it outside of your control, though you can force a store/reload to get a safer value to work with. So it may still work, but there are some sneaky conditions that may depend on specific codegen choices the compiler makes.
PraiseRe: c++ - std :: map - Is my idea too dirty? Pin
0x01AA11-Jul-18 10:54
professional0x01AA11-Jul-18 10:54 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan11-Jul-18 20:44
protectorRichard MacCutchan11-Jul-18 20:44 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
harold aptroot12-Jul-18 13:34
memberharold aptroot12-Jul-18 13:34 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan12-Jul-18 20:42
protectorRichard MacCutchan12-Jul-18 20:42 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
harold aptroot12-Jul-18 21:19
memberharold aptroot12-Jul-18 21:19 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan12-Jul-18 21:41
protectorRichard MacCutchan12-Jul-18 21:41 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
0x01AA13-Jul-18 8:44
professional0x01AA13-Jul-18 8:44 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan13-Jul-18 20:13
protectorRichard MacCutchan13-Jul-18 20:13 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan14-Jul-18 5:10
protectorRichard MacCutchan14-Jul-18 5:10 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
0x01AA14-Jul-18 6:19
professional0x01AA14-Jul-18 6:19 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
CPallini11-Jul-18 22:22
mvpCPallini11-Jul-18 22:22 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Jochen Arndt13-Jul-18 0:13
mvpJochen Arndt13-Jul-18 0:13 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
0x01AA13-Jul-18 7:54
professional0x01AA13-Jul-18 7:54 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Randor 23-Jul-18 13:20
professional Randor 23-Jul-18 13:20 
PraiseRe: c++ - std :: map - Is my idea too dirty? Pin
0x01AA23-Jul-18 21:48
professional0x01AA23-Jul-18 21:48 
Questionneed COM/DCOM basics Pin
Sakthiu11-Jul-18 4:35
memberSakthiu11-Jul-18 4:35 
AnswerRe: need COM/DCOM basics Pin
jeron111-Jul-18 5:07
memberjeron111-Jul-18 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.181113.2 | Last Updated 13 Nov 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid