<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body wd-tech="true" spellcheck="false">
<p>Dear all<span
class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">,</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">I am a scientist and a Java developer in the
ESA/DPAC consortium (<a class="moz-txt-link-freetext"
href="https://www.cosmos.esa.int/web/gaia/dpac">https://www.cosmos.esa.int/web/gaia/dpac</a>). </span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">I downloaded FdLibm.java from the Open-JDK
project, and I wrote a function which computes simultaneously
the cosine and sine of an angle. Indeed, in science we very
often need both of the cosine and the sine in our computations.</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">I noticed that we can save 25% of the processing
time compared to two separate calls to the cos and sin
functions. The reason for this is that we won't repeat the
common function they share.</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">My local tests were missing the JDK '@stable'
annotation, which optimizes a lot and is not possible to keep in
my local tests.</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">It would be great if we could include the new
function in the official OpenJDK project.</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">I attach my local version of FdLibm.java
(without @stable annotations) including the class SinCos (line
2483).</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">Many thanks in advance,</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">Yassine</span></p>
<p><span class="p-name vcard-fullname d-block overflow-hidden"
itemprop="name">PS : Mr Ivanov redirected me to this mailing
list.</span></p>
<div id="grammalecte_menu_main_button_shadow_host"
style="width: 0px; height: 0px;"></div>
</body>
</html>