-
Notifications
You must be signed in to change notification settings - Fork 23
/
STFloat.h
39 lines (27 loc) · 960 Bytes
/
STFloat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/******************************************************************************
File: STFloat.h
Description:
VM representation of Smalltalk Float class (N.B. double precision).
N.B. The class here defined is well known to the VM, and must not
be modified in the image. Note also that this class may also have
a representation in the assembler modules (so see istasm.inc)
******************************************************************************/
#pragma once
#include "STMagnitude.h"
#pragma pack(push,4)
// Declare forward references
namespace ST { class Float; }
typedef TOTE<ST::Float> FloatOTE;
namespace ST
{
// Float is a variable Byte subclass of Number, though it is always 8 bytes long
class Float : public Number
{
public:
double m_fValue;
static FloatOTE* __stdcall New();
static FloatOTE* __stdcall New(double fValue);
};
}
std::wostream& operator<<(std::wostream& st, const FloatOTE* oteFloat);
#pragma pack(pop)