VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bs3-fpustate-1-asm.asm@ 92580

Last change on this file since 92580 was 82968, checked in by vboxsync, 5 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1; $Id: bs3-fpustate-1-asm.asm 82968 2020-02-04 10:35:17Z vboxsync $
2;; @file
3; BS3Kit - bs3-fpustate-1, assembly helpers and template instantiation.
4;
5
6;
7; Copyright (C) 2007-2020 Oracle Corporation
8;
9; This file is part of VirtualBox Open Source Edition (OSE), as
10; available from http://www.virtualbox.org. This file is free software;
11; you can redistribute it and/or modify it under the terms of the GNU
12; General Public License (GPL) as published by the Free Software
13; Foundation, in version 2 as it comes in the "COPYING" file of the
14; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16;
17; The contents of this file may alternatively be used under the terms
18; of the Common Development and Distribution License Version 1.0
19; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20; VirtualBox OSE distribution, in which case the provisions of the
21; CDDL are applicable instead of those of the GPL.
22;
23; You may elect to license modified versions of this file under the
24; terms and conditions of either the GPL or the CDDL or both.
25;
26
27
28;*********************************************************************************************************************************
29;* Header Files *
30;*********************************************************************************************************************************
31%include "bs3kit.mac"
32
33
34;*********************************************************************************************************************************
35;* Global Variables *
36;*********************************************************************************************************************************
37BS3_BEGIN_DATA16
38;; @name Floating point constants.
39; @{
40g_r32_0dot1: dd 0.1
41g_r32_3dot2: dd 3.2
42g_r32_Zero: dd 0.0
43g_r32_One: dd 1.0
44g_r32_Two: dd 2.0
45g_r32_Three: dd 3.0
46g_r32_Ten: dd 10.0
47g_r32_Eleven: dd 11.0
48g_r32_ThirtyTwo:dd 32.0
49g_r32_Min: dd 000800000h
50g_r32_Max: dd 07f7fffffh
51g_r32_Inf: dd 07f800000h
52g_r32_SNaN: dd 07f800001h
53g_r32_SNaNMax: dd 07fbfffffh
54g_r32_QNaN: dd 07fc00000h
55g_r32_QNaNMax: dd 07fffffffh
56g_r32_NegQNaN: dd 0ffc00000h
57
58g_r64_0dot1: dq 0.1
59g_r64_6dot9: dq 6.9
60g_r64_Zero: dq 0.0
61g_r64_One: dq 1.0
62g_r64_Two: dq 2.0
63g_r64_Three: dq 3.0
64g_r64_Ten: dq 10.0
65g_r64_Eleven: dq 11.0
66g_r64_ThirtyTwo:dq 32.0
67g_r64_Min: dq 00010000000000000h
68g_r64_Max: dq 07fefffffffffffffh
69g_r64_Inf: dq 07ff0000000000000h
70g_r64_SNaN: dq 07ff0000000000001h
71g_r64_SNaNMax: dq 07ff7ffffffffffffh
72g_r64_NegQNaN: dq 0fff8000000000000h
73g_r64_QNaN: dq 07ff8000000000000h
74g_r64_QNaNMax: dq 07fffffffffffffffh
75g_r64_DnMin: dq 00000000000000001h
76g_r64_DnMax: dq 0000fffffffffffffh
77
78
79g_r80_0dot1: dt 0.1
80g_r80_3dot2: dt 3.2
81g_r80_Zero: dt 0.0
82g_r80_One: dt 1.0
83g_r80_Two: dt 2.0
84g_r80_Three: dt 3.0
85g_r80_Ten: dt 10.0
86g_r80_Eleven: dt 11.0
87g_r80_ThirtyTwo:dt 32.0
88%ifdef __NASM__
89g_r80_Min: dq 08000000000000000h
90 dw 00001h
91g_r80_Max: dq 0ffffffffffffffffh
92 dw 07ffeh
93g_r80_Inf: dq 08000000000000000h
94 dw 07fffh
95g_r80_QNaN: dq 0c000000000000000h
96 dw 07fffh
97g_r80_QNaNMax: dq 0ffffffffffffffffh
98 dw 07fffh
99g_r80_NegQNaN: dq 0c000000000000000h
100 dw 0ffffh
101g_r80_SNaN: dq 08000000000000001h
102 dw 07fffh
103g_r80_SNaNMax: dq 0bfffffffffffffffh
104 dw 07fffh
105g_r80_DnMin: dq 00000000000000001h
106 dw 00000h
107g_r80_DnMax: dq 07fffffffffffffffh
108 dw 00000h
109%else
110g_r80_Min: dt 000018000000000000000h
111g_r80_Max: dt 07ffeffffffffffffffffh
112g_r80_Inf: dt 07fff8000000000000000h
113g_r80_QNaN: dt 07fffc000000000000000h
114g_r80_QNaNMax: dt 07fffffffffffffffffffh
115g_r80_NegQNaN: dt 0ffffc000000000000000h
116g_r80_SNaN: dt 07fff8000000000000001h
117g_r80_SNaNMax: dt 07fffbfffffffffffffffh
118g_r80_DnMin: dt 000000000000000000001h
119g_r80_DnMax: dt 000007fffffffffffffffh
120%endif
121
122g_r32V1: dd 3.2
123g_r32V2: dd -1.9
124g_r64V1: dq 6.4
125g_r80V1: dt 8.0
126
127; Denormal numbers.
128g_r32D0: dd 000200000h
129;; @}
130
131;; @name Upconverted Floating point constants
132; @{
133;g_r80_r32_0dot1: dt 0.1
134%ifdef __NASM__
135g_r80_r32_3dot2: dq 0cccccd0000000000h
136 dw 04000h
137%else
138g_r80_r32_3dot2: dt 04000cccccd0000000000h
139%endif
140;g_r80_r32_Zero: dt 0.0
141;g_r80_r32_One: dt 1.0
142;g_r80_r32_Two: dt 2.0
143;g_r80_r32_Three: dt 3.0
144;g_r80_r32_Ten: dt 10.0
145;g_r80_r32_Eleven: dt 11.0
146;g_r80_r32_ThirtyTwo: dt 32.0
147;; @}
148
149;; @name Decimal constants.
150; @{
151g_u64Zero: dd 0
152g_u32Zero: dw 0
153g_u64Two: dd 2
154g_u32Two: dw 2
155;; @}
156
157
158;
159; Instantiate code templates.
160;
161BS3_INSTANTIATE_TEMPLATE_ESSENTIALS "bs3-fpustate-1-template.mac"
162
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette