<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><br><div dir="ltr"><blockquote type="cite">On 17-Jul-2020, at 10:40 AM, Sebastian Huber <sebastian.huber@embedded-brains.de> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>On 17/07/2020 01:23, Eshan dhawan wrote:</span><br><span></span><br><blockquote type="cite"><span>  int fegetexcept(void)</span><br></blockquote><blockquote type="cite"><span>  {</span><br></blockquote><blockquote type="cite"><span>-    int __unmasked;</span><br></blockquote><blockquote type="cite"><span>  -    __unmasked = 0;</span><br></blockquote><blockquote type="cite"><span>  #ifndef SOFTFP_ABI</span><br></blockquote><span></span><br><span>Do we need this extra define, can't we use</span><br><span></span><br><span>#ifndef __SOFTFP__</span><br><span></span><br><span>like in glibc?</span></div></blockquote><div><br></div><div>“<span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);">Paradoxically,the </span><tt style="-webkit-text-size-adjust: auto; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; white-space: pre;">-mfloat-abi=softfp</tt><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);"> does </span><span style="font-size: 16px; -webkit-text-size-adjust: auto; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: italic; font-family: sans-serif; vertical-align: baseline; color: rgb(68, 68, 68);">not </span><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);">set the </span><tt style="-webkit-text-size-adjust: auto; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 13px; vertical-align: baseline; white-space: pre;">__SOFTFP___</tt><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);"> macro, since it selects real floating point instructions </span><span class="anchor" id="line-118" style="font-size: 16px; -webkit-text-size-adjust: auto; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-family: sans-serif; vertical-align: baseline; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34);"></span><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);">using the soft-float ABI at function-call interfaces.” </span></div><div><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);"><br></span></div><div><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);">So SOFTFP_ABI is defined. :)</span></div><div><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);">You can read more here : </span></div><div><a href="https://wiki.debian.org/ArmEabiPort#:~:text=__VFP_FP__%20means%20that,and%20is%20always%20little%2Dendian">https://wiki.debian.org/ArmEabiPort#:~:text=__VFP_FP__%20means%20that,and%20is%20always%20little%2Dendian</a></div><div><span style="font-size: 16px; -webkit-text-size-adjust: auto; caret-color: rgb(34, 34, 34); color: rgb(34, 34, 34); font-family: sans-serif; background-color: rgb(255, 255, 255);">Under “ </span><span style="font-family: sans-serif; font-size: 1.125em; -webkit-text-size-adjust: auto;">GCC preprocessor macros for floating point ”</span></div><div><br></div><div>-Eshan</div><blockquote type="cite"><div dir="ltr"><br></div></blockquote></body></html>