<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:1.2em 0px!important">This is my first time using Phabricator. It seems like Phabricator is not CCing the list, so I’ll post a link here.</p>
<p style="margin:1.2em 0px!important"><a href="http://reviews.llvm.org/D12099">http://reviews.llvm.org/D12099</a></p>
<p style="margin:1.2em 0px!important">Summary:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">
The x86 MSVC CRT library does not contain a fmodf(f32) function. It
only has the 64-bit fmod(f64) function.
Inside the MSVC CRT C headers, fmodf(f32) is defined as an inline
function which casts the f32 into an f64 and calls fmod(f64),
casting the result back. The fmodf function is never emitted into the
CRT lib.
This patch fixes this by instead promoting a 32-bit FREM into a 64-bit
FREM, but only on a 32-bit MSVC target.
This fixes an undefined symbol: fmodf error when linking on 32-bit
Windows.
</code></pre><div title="MDH:VGhpcyBpcyBteSBmaXJzdCB0aW1lIHVzaW5nIFBoYWJyaWNhdG9yLiBJdCBzZWVtcyBsaWtlIFBo
YWJyaWNhdG9yIGlzIG5vdCBDQ2luZyB0aGUgbGlzdCwgc28gSSdsbCBwb3N0IGEgbGluayBoZXJl
LDxkaXY+PGJyPjwvZGl2PjxkaXY+PGEgaHJlZj0iaHR0cDovL3Jldmlld3MubGx2bS5vcmcvRDEy
MDk5Ij5odHRwOi8vcmV2aWV3cy5sbHZtLm9yZy9EMTIwOTk8L2E+PGJyPjwvZGl2PjxkaXY+PGJy
PjwvZGl2PjxkaXY+U3VtbWFyeTo8L2Rpdj48ZGl2PmBgYDwvZGl2PjxkaXY+PHAgc3R5bGU9Im1h
cmdpbjogMHB4IDBwe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