开发者

Is the FPU control word setting per-thread or per-process?

开发者 https://www.devze.com 2022-12-25 10:36 出处:网络
I ne开发者_JS百科ed to change the FPU control word from its default setting in a multithreaded application. Is this setting per-thread or per-process? Does it have different scopes under Mac OS X and

I ne开发者_JS百科ed to change the FPU control word from its default setting in a multithreaded application. Is this setting per-thread or per-process? Does it have different scopes under Mac OS X and Windows?


It is per-thread on Windows. Not sure about OS-X, surely it does.

Beware the nastiness you can run into if you are using libraries that expect the control word to be set at the default. Almost all of them do.

0

精彩评论

暂无评论...
验证码 换一张
取 消