forked from dolphinsmalltalk/DolphinVM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
STFloat.h
38 lines (25 loc) · 914 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
/******************************************************************************
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)
******************************************************************************/
#ifndef _IST_STFLOAT_H_
#define _IST_STFLOAT_H_
#include "STMagnitude.h"
#pragma pack(push,4)
class Float;
typedef TOTE<Float> FloatOTE;
ostream& operator<<(ostream& st, const FloatOTE* oteFloat);
// 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);
};
#pragma pack(pop)
#endif