<HTML>
<div><style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>I'll see what I can put together.  Personally I'd prefer it if the source code contained something that says "call this internal procedure" or "insert this special node", although that would require some careful design.</div><div><br>
</div><div>Gareth aka. Kit<br>
</div> <br>
<br>
<span style="font-weight: bold;">On Sun 03/02/19 22:05 , Florian Klämpfl florian@freepascal.org sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">Am 03.02.19 um 21:52 schrieb J. Gareth Moreton:
<br>

<span style="color: rgb(102, 102, 102);">> It just seems highly dependent on the source code and can easily break 
</span><br>

<span style="color: rgb(102, 102, 102);">> if it's changed... and not just the Floor function, but also possibly if 
</span><br>

<span style="color: rgb(102, 102, 102);">> Trunc and Frac are modified in some way.  The code does boil down to two 
</span><br>

<span style="color: rgb(102, 102, 102);">> instructions in SSE 4.1 and AVX, but it depends on many different nodes 
</span><br>

<span style="color: rgb(102, 102, 102);">> with an exact arrangement, and if something is changed (but still 
</span><br>

<span style="color: rgb(102, 102, 102);">> functionally equivalent), the optimisation will break.
</span><br>


<br>

Well, yes. But maybe its possible to create a reasonable test and take 
<br>

care of most imaginable situations.
<br>

_______________________________________________
<br>

fpc-devel maillist  -  <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<br>

<a target="_blank" href="<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>"><span style="color: red;">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</span></a>
<br>

<br>

<br>

</blockquote></HTML>