SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
HexFiend/HFTypes.h
1 /*! @brief HFRange is the 64 bit analog of NSRange, containing a 64 bit location and length. */
2 typedef struct {
3 unsigned long long location;
4 unsigned long long length;
5 } HFRange;
6
7 /*! @brief HFFPRange is a struct used for representing floating point ranges, similar to NSRange. It contains two long doubles.
8
9 This is useful for (for example) showing the range of visible lines. A double-precision value has 53 significant bits in the mantissa - so we would start to have precision problems at the high end of the range we can represent. Long double has a 64 bit mantissa on Intel, which means that we would start to run into trouble at the very very end of our range - barely acceptable. */
10 typedef struct {
11 long double location;
12 long double length;
13 } HFFPRange;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.