git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
QuadTree should segfault less frequently.
[ipdf/code.git]
/
src
/
tests
/
represent.cpp
diff --git
a/src/tests/represent.cpp
b/src/tests/represent.cpp
index
c576802
..
b893f97
100644
(file)
--- a/
src/tests/represent.cpp
+++ b/
src/tests/represent.cpp
@@
-242,14
+242,14
@@
int main(int argc, char ** argv)
printf("# Convert custom floats to a Real\n");
printf("# a\thex(a)\tReal(a)\tdelta(last2)\n");
printf("# Convert custom floats to a Real\n");
printf("# a\thex(a)\tReal(a)\tdelta(last2)\n");
- typedef uint
16
_t Bits;
+ typedef uint
8
_t Bits;
typedef pair<Bits, Real> Pear;
typedef pair<Bits, Real> Pear;
- const uint8_t E =
5
;
- const uint8_t P =
10
;
+ const uint8_t E =
3
;
+ const uint8_t P =
4
;
list<Pear> space;
list<Pear> space;
- Bits a0 = 0x00
00
;
- for (Bits a = a0; a < 0xFF
FF
; ++a)
+ Bits a0 = 0x00;
+ for (Bits a = a0; a < 0xFF; ++a)
{
Real x = BitsToReal<E,P>(&a);
Bits b = 0; BitsFromReal<E,P>(x, &b);
{
Real x = BitsToReal<E,P>(&a);
Bits b = 0; BitsFromReal<E,P>(x, &b);
@@
-274,4
+274,4
@@
int main(int argc, char ** argv)
//0|011 11|00 0000 0001
//0|011 11|00 0000 0001
-//0|000 01|00 0000 0000
\ No newline at end of file
+//0|000 01|00 0000 0000
UCC
git Repository :: git.ucc.asn.au