mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-10-10 01:37:24 +00:00
- adding Platform.LittleEndian to centralize endianness detection - using SYSTEM.GET with correct byte offset for HUGEINT to smaller type reads on big-endian - fixing Reals.BytesToHex iteration direction and InitEndian for big-endian - fixing oocLowReal fraction, IsInfinity, IsNaN using Reals.Expo/SetExpo - fixing Math.ToREAL and MathL.exponent for big-endian - fixing In.Int and In.LongInt for big-endian - fixing outtest.wh byte iteration direction for big-endian - regenerating all bootstrap C sources - tested on ppc32
24 lines
722 B
C
24 lines
722 B
C
/* voc 2.1.0 [2026/07/12]. Bootstrapping compiler for address size 8, alignment 8. xrtspaSF */
|
|
|
|
#ifndef Reals__h
|
|
#define Reals__h
|
|
|
|
#include "SYSTEM.h"
|
|
|
|
|
|
|
|
|
|
import void Reals_Convert (REAL x, INT16 n, CHAR *d, ADDRESS d__len);
|
|
import void Reals_ConvertH (REAL y, CHAR *d, ADDRESS d__len);
|
|
import void Reals_ConvertHL (LONGREAL x, CHAR *d, ADDRESS d__len);
|
|
import void Reals_ConvertL (LONGREAL x, INT16 n, CHAR *d, ADDRESS d__len);
|
|
import INT16 Reals_Expo (REAL x);
|
|
import INT16 Reals_ExpoL (LONGREAL x);
|
|
import void Reals_SetExpo (REAL *x, INT16 ex);
|
|
import void Reals_SetExpoL (LONGREAL *x, INT16 ex);
|
|
import REAL Reals_Ten (INT16 e);
|
|
import LONGREAL Reals_TenL (INT16 e);
|
|
import void *Reals__init(void);
|
|
|
|
|
|
#endif // Reals
|