[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/BOOST PATCH 4/6] Add fenv.h header


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 11 Dec 2019 00:32:43 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OC+ffVVk6ePbyMM6CNsgj/B2qrl6SFwzYszC+h3+VK0=; b=GsmjyUiI0LngcUtn0nF5KzHa9BWJvEwfA0QNJIMS9u4jG93RdTP+HtDmh2eAQOOip2sG266kvKjAOLE/Ow3H444LQyq6aHrJD9wHlmUzEQq+iOfwTekZTybJv2F3h+gs3CPDB1H5NWSwwzK2Tq6gPisxjpo+DLuVBGWk1RvYHX3lfsN9ga7BKYMVImIm1eaBwX1U5Qlxt6satqk7ECWtxtt8rkTQZbQzm4mlX8EvSpvhAy5cecuQXaIJBGYbWOCmKd55WQy/aB+UbGgVVNexB9tyQYyxr6MN67ynsVjdVUiP/OCAoFSZanDUNJO3KcpA3Va21k4IwOPwWGxi9jzg+w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U6Fr5wCm6zGqOYtw2Ht9Bax5x7xeuWW4udkiunxR++9EgU7BDC4lJQ6hnJCLrb1ewvBbXUvbp1UBNWzvhATV92zRxcZu14+Lqv5oaRyqH9NofR12Yc57557lmf35UNjVk+oejBYnmIXNH24cY3PdutWvhVWknX1wBQsu6JvJlR/QvXq0iRBdmgJFi20J57ApmxJBeXNoKBDLJUYT5NYVKDKE2XUehgoUyN9GGJqvkAPq8MnDA4TW6+hvrqu+domXfcUU3PdTgnPllHrCzwtNoYYGye9teCT6aKNLhwv6blQkGabfTO41aehKkFNstC0HmWfhH6t7owBrxG8NQwVSpg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 11 Dec 2019 00:33:14 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVr7qAqB828wxEG0mPlnPdlqJqiw==
  • Thread-topic: [UNIKRAFT/BOOST PATCH 4/6] Add fenv.h header

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 include/fenv.h | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 include/fenv.h

diff --git a/include/fenv.h b/include/fenv.h
new file mode 100644
index 0000000..207bf84
--- /dev/null
+++ b/include/fenv.h
@@ -0,0 +1,60 @@
+/* SPDX-License-Identifier: MIT */                                             
                                                                                
                                                    
+/* ----------------------------------------------------------------------
+ * Copyright <C2><A9> 2005-2014 Rich Felker, et al.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * ----------------------------------------------------------------------
+ */
+/* Taken from musl-1.1.19 */
+
+#define FE_INVALID    1
+#define __FE_DENORM   2
+#define FE_DIVBYZERO  4
+#define FE_OVERFLOW   8
+#define FE_UNDERFLOW  16
+#define FE_INEXACT    32
+
+//#define FE_ALL_EXCEPT 63
+
+#define FE_TONEAREST  0
+#define FE_DOWNWARD   0x400
+#define FE_UPWARD     0x800
+#define FE_TOWARDZERO 0xc00
+
+typedef unsigned short fexcept_t;
+
+typedef struct {
+       unsigned short __control_word;
+       unsigned short __unused1;
+       unsigned short __status_word;
+       unsigned short __unused2;
+       unsigned short __tags;
+       unsigned short __unused3;
+       unsigned int __eip;
+       unsigned short __cs_selector;
+       unsigned int __opcode:11;
+       unsigned int __unused4:5;
+       unsigned int __data_offset;
+       unsigned short __data_selector;
+       unsigned short __unused5;
+       unsigned int __mxcsr;
+} fenv_t;
+
+#define FE_DFL_ENV      ((const fenv_t *) -1)
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.