home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-03-07 | 6.3 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: IsNan.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Mar 7 21:08:26 1996, modified Thu Mar 7 21:08:26 1996, creator 'CWIE', type ASCII, 5657 bytes "IsNan.c" , at 0x1699 456 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 49 73 4e 61 6e 2e | 63 00 00 00 00 00 00 00 |..IsNan.|c.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 16 19 00 | 00 01 c8 ad 65 47 1a ad |........|....eG..|
|00000060| 65 47 1a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |eG......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b3 76 00 00 |........|.....v..|
|00000080| 2f 2a 0d 49 73 4e 61 6e | 2e 63 0d 0d 46 61 73 74 |/*.IsNan|.c..Fast|
|00000090| 2c 20 70 6f 72 74 61 62 | 6c 65 20 72 6f 75 74 69 |, portab|le routi|
|000000a0| 6e 65 73 20 74 6f 20 63 | 68 65 63 6b 20 66 6f 72 |nes to c|heck for|
|000000b0| 20 49 45 45 45 20 74 72 | 61 6e 73 66 69 6e 69 74 | IEEE tr|ansfinit|
|000000c0| 65 20 6e 75 6d 62 65 72 | 73 3a 20 49 4e 46 20 61 |e number|s: INF a|
|000000d0| 6e 64 20 4e 41 4e 2e 20 | 59 6f 75 0d 73 68 6f 75 |nd NAN. |You.shou|
|000000e0| 6c 64 20 61 6c 73 6f 20 | 6c 6f 6f 6b 20 61 74 20 |ld also |look at |
|000000f0| 74 68 65 20 6d 61 63 72 | 6f 20 49 73 46 69 6e 69 |the macr|o IsFini|
|00000100| 74 65 28 29 20 69 6e 20 | 56 69 64 65 6f 54 6f 6f |te() in |VideoToo|
|00000110| 6c 62 6f 78 2e 68 2e 0d | 0d 41 70 70 6c 65 27 73 |lbox.h..|.Apple's|
|00000120| 20 6e 65 77 20 68 65 61 | 64 65 72 20 66 69 6c 65 | new hea|der file|
|00000130| 20 66 70 2e 68 20 64 65 | 66 69 6e 65 73 20 74 68 | fp.h de|fines th|
|00000140| 65 20 6d 61 63 72 6f 73 | 20 69 73 66 69 6e 69 74 |e macros| isfinit|
|00000150| 65 28 78 29 20 61 6e 64 | 20 69 73 6e 61 6e 28 78 |e(x) and| isnan(x|
|00000160| 29 2c 20 61 6e 64 0d 74 | 68 65 20 66 75 6e 63 74 |), and.t|he funct|
|00000170| 69 6f 6e 20 6e 61 6e 28 | 22 32 35 35 22 29 2e 20 |ion nan(|"255"). |
|00000180| 41 74 20 70 72 65 73 65 | 6e 74 20 74 68 65 20 66 |At prese|nt the f|
|00000190| 75 6e 63 74 69 6f 6e 20 | 6e 61 6e 28 29 20 69 73 |unction |nan() is|
|000001a0| 20 6f 6e 6c 79 20 69 6d | 70 6c 65 6d 65 6e 74 65 | only im|plemente|
|000001b0| 64 20 66 6f 72 0d 74 68 | 65 20 50 6f 77 65 72 50 |d for.th|e PowerP|
|000001c0| 43 2c 20 62 75 74 20 70 | 72 65 73 75 6d 61 62 6c |C, but p|resumabl|
|000001d0| 79 20 41 70 70 6c 65 20 | 77 69 6c 6c 20 73 6f 6f |y Apple |will soo|
|000001e0| 6e 20 65 78 74 65 6e 64 | 20 73 75 70 70 6f 72 74 |n extend| support|
|000001f0| 20 74 6f 20 69 6e 63 6c | 75 64 65 20 74 68 65 20 | to incl|ude the |
|00000200| 36 38 30 78 30 0d 6d 61 | 63 68 69 6e 65 73 20 74 |680x0.ma|chines t|
|00000210| 6f 6f 2e 20 53 75 72 70 | 72 69 73 69 6e 67 6c 79 |oo. Surp|risingly|
|00000220| 2c 20 66 70 2e 68 20 64 | 6f 65 73 6e 27 74 20 69 |, fp.h d|oesn't i|
|00000230| 6e 63 6c 75 64 65 20 61 | 6e 79 20 65 71 75 69 76 |nclude a|ny equiv|
|00000240| 61 6c 65 6e 74 20 74 6f | 20 49 73 49 6e 66 28 29 |alent to| IsInf()|
|00000250| 2e 20 59 6f 75 0d 63 6f | 75 6c 64 20 77 72 69 74 |. You.co|uld writ|
|00000260| 65 20 73 6f 6d 65 74 68 | 69 6e 67 20 6c 69 6b 65 |e someth|ing like|
|00000270| 20 66 70 63 6c 61 73 73 | 69 66 79 28 78 29 3d 3d | fpclass|ify(x)==|
|00000280| 46 50 5f 49 4e 46 49 4e | 49 54 45 2c 20 62 75 74 |FP_INFIN|ITE, but|
|00000290| 20 67 65 74 74 69 6e 67 | 20 74 68 65 20 73 69 67 | getting| the sig|
|000002a0| 6e 0d 77 6f 75 6c 64 20 | 74 61 6b 65 20 61 6e 6f |n.would |take ano|
|000002b0| 74 68 65 72 20 73 74 65 | 70 2e 0d 0d 49 73 4e 61 |ther ste|p...IsNa|
|000002c0| 6e 20 61 6e 64 20 49 73 | 49 6e 66 20 74 61 6b 65 |n and Is|Inf take|
|000002d0| 20 61 20 73 68 6f 72 74 | 63 75 74 20 69 6e 20 64 | a short|cut in d|
|000002e0| 69 73 74 69 6e 67 75 69 | 73 68 69 6e 67 20 4e 61 |istingui|shing Na|
|000002f0| 4e 20 66 72 6f 6d 20 49 | 4e 46 2e 20 54 68 65 20 |N from I|NF. The |
|00000300| 64 65 66 69 6e 69 74 69 | 6f 6e 0d 6f 66 20 61 20 |definiti|on.of a |
|00000310| 4e 61 4e 20 69 6e 20 74 | 68 65 20 41 70 70 6c 65 |NaN in t|he Apple|
|00000320| 20 4e 75 6d 65 72 69 63 | 73 20 62 6f 6f 6b 20 6f | Numeric|s book o|
|00000330| 6e 6c 79 20 73 61 79 73 | 20 74 68 61 74 20 61 20 |nly says| that a |
|00000340| 4e 61 4e 20 69 73 20 64 | 69 73 74 69 6e 67 75 69 |NaN is d|istingui|
|00000350| 73 68 65 64 20 66 72 6f | 6d 0d 61 6e 20 49 4e 46 |shed fro|m.an INF|
|00000360| 20 62 79 20 68 61 76 69 | 6e 67 20 61 20 6e 6f 6e | by havi|ng a non|
|00000370| 7a 65 72 6f 20 6d 61 6e | 74 69 73 73 61 2e 20 55 |zero man|tissa. U|
|00000380| 6e 66 6f 72 74 75 6e 61 | 74 65 6c 79 2c 20 61 20 |nfortuna|tely, a |
|00000390| 73 74 72 69 63 74 20 74 | 65 73 74 20 6f 66 20 74 |strict t|est of t|
|000003a0| 68 69 73 0d 72 65 71 75 | 69 72 65 73 20 74 65 73 |his.requ|ires tes|
|000003b0| 74 69 6e 67 20 74 68 65 | 20 77 68 6f 6c 65 20 6d |ting the| whole m|
|000003c0| 61 6e 74 69 73 73 61 2c | 20 75 70 20 74 6f 20 38 |antissa,| up to 8|
|000003d0| 20 62 79 74 65 73 2c 20 | 61 6e 64 20 69 6e 20 66 | bytes, |and in f|
|000003e0| 61 63 74 20 74 68 65 20 | 72 6f 75 74 69 6e 65 73 |act the |routines|
|000003f0| 20 69 6e 0d 50 6c 61 75 | 67 68 65 72 27 73 20 54 | in.Plau|gher's T|
|00000400| 68 65 20 53 74 61 6e 64 | 61 72 64 20 43 20 4c 69 |he Stand|ard C Li|
|00000410| 62 72 61 72 79 20 64 6f | 20 65 78 61 63 74 6c 79 |brary do| exactly|
|00000420| 20 74 68 69 73 2e 20 28 | 54 68 65 20 49 45 45 45 | this. (|The IEEE|
|00000430| 20 73 74 61 6e 64 61 72 | 64 20 6f 75 67 68 74 20 | standar|d ought |
|00000440| 74 6f 0d 68 61 76 65 20 | 64 69 73 61 6c 6c 6f 77 |to.have |disallow|
|00000450| 65 64 20 61 20 4e 61 4e | 20 63 6f 64 65 20 6f 66 |ed a NaN| code of|
|00000460| 20 7a 65 72 6f 2e 29 20 | 57 65 20 74 61 6b 65 20 | zero.) |We take |
|00000470| 61 20 68 79 62 72 69 64 | 20 61 70 70 72 6f 61 63 |a hybrid| approac|
|00000480| 68 2c 20 6f 6e 20 36 38 | 30 78 30 0d 6d 61 63 68 |h, on 68|0x0.mach|
|00000490| 69 6e 65 73 20 28 69 2e | 65 2e 20 31 30 20 26 20 |ines (i.|e. 10 & |
|000004a0| 31 32 20 62 79 74 65 20 | 64 6f 75 62 6c 65 73 29 |12 byte |doubles)|
|000004b0| 20 6d 79 20 65 78 70 65 | 72 69 65 6e 63 65 20 69 | my expe|rience i|
|000004c0| 73 20 74 68 61 74 20 74 | 68 65 20 4e 61 4e 20 63 |s that t|he NaN c|
|000004d0| 6f 64 65 20 69 73 0d 61 | 6c 77 61 79 73 20 6e 6f |ode is.a|lways no|
|000004e0| 6e 7a 65 72 6f 2c 20 75 | 6e 6c 65 73 73 20 73 6f |nzero, u|nless so|
|000004f0| 6d 65 6f 6e 65 20 67 6f | 65 73 20 6f 75 74 20 6f |meone go|es out o|
|00000500| 66 20 74 68 65 69 72 20 | 77 61 79 20 74 6f 20 63 |f their |way to c|
|00000510| 72 65 61 74 65 20 61 20 | 7a 65 72 6f 2d 63 6f 64 |reate a |zero-cod|
|00000520| 65 20 4e 61 4e 2c 0d 61 | 6e 64 20 77 68 61 74 27 |e NaN,.a|nd what'|
|00000530| 73 20 6d 6f 72 65 2c 20 | 69 6e 20 61 6c 6c 20 4e |s more, |in all N|
|00000540| 61 4e 73 20 74 68 65 20 | 74 6f 70 20 62 69 74 20 |aNs the |top bit |
|00000550| 6f 66 20 74 68 65 20 6d | 61 6e 74 69 73 73 61 20 |of the m|antissa |
|00000560| 69 73 20 73 65 74 2e 20 | 53 6f 20 69 74 20 69 73 |is set. |So it is|
|00000570| 0d 73 75 66 66 69 63 69 | 65 6e 74 20 74 6f 20 74 |.suffici|ent to t|
|00000580| 65 73 74 20 74 68 65 20 | 74 6f 70 20 62 69 74 20 |est the |top bit |
|00000590| 61 6e 64 20 74 68 65 20 | 63 6f 64 65 20 62 79 74 |and the |code byt|
|000005a0| 65 20 74 6f 20 64 69 73 | 74 69 6e 67 75 69 73 68 |e to dis|tinguish|
|000005b0| 20 62 65 74 77 65 65 6e | 20 4e 61 4e 20 61 6e 64 | between| NaN and|
|000005c0| 20 49 4e 46 2e 0d 4f 6e | 20 74 68 65 20 6f 74 68 | INF..On| the oth|
|000005d0| 65 72 20 68 61 6e 64 2c | 20 74 68 65 20 50 6f 77 |er hand,| the Pow|
|000005e0| 65 72 50 43 20 4e 75 6d | 65 72 69 63 73 20 6d 61 |erPC Num|erics ma|
|000005f0| 6e 75 61 6c 20 73 61 79 | 73 20 74 68 61 74 20 74 |nual say|s that t|
|00000600| 68 65 20 50 6f 77 65 72 | 50 43 20 63 68 69 70 20 |he Power|PC chip |
|00000610| 61 6c 77 61 79 73 0d 72 | 65 74 75 72 6e 73 20 61 |always.r|eturns a|
|00000620| 20 4e 61 4e 20 63 6f 64 | 65 20 6f 66 20 7a 65 72 | NaN cod|e of zer|
|00000630| 6f 20 28 73 65 65 6d 73 | 20 61 20 66 6f 6f 6c 69 |o (seems| a fooli|
|00000640| 73 68 20 63 68 6f 69 63 | 65 29 2c 20 73 6f 20 77 |sh choic|e), so w|
|00000650| 65 20 70 6c 61 79 20 73 | 61 66 65 20 61 6e 64 20 |e play s|afe and |
|00000660| 74 65 73 74 0d 74 68 65 | 20 77 68 6f 6c 65 20 6d |test.the| whole m|
|00000670| 61 6e 74 69 73 73 61 20 | 77 68 65 6e 20 77 65 27 |antissa |when we'|
|00000680| 72 65 20 64 65 61 6c 69 | 6e 67 20 77 69 74 68 20 |re deali|ng with |
|00000690| 38 20 62 79 74 65 20 64 | 6f 75 62 6c 65 73 2e 0d |8 byte d|oubles..|
|000006a0| 0d 54 68 65 20 4e 75 6d | 65 72 69 63 61 6c 20 45 |.The Num|erical E|
|000006b0| 78 74 65 6e 73 69 6f 6e | 73 20 74 6f 20 43 20 67 |xtension|s to C g|
|000006c0| 72 6f 75 70 20 68 61 73 | 20 70 72 6f 70 6f 73 65 |roup has| propose|
|000006d0| 64 20 69 6e 20 74 68 65 | 69 72 20 64 72 61 66 74 |d in the|ir draft|
|000006e0| 20 73 74 61 6e 64 61 72 | 64 20 74 68 61 74 0d 72 | standar|d that.r|
|000006f0| 6f 75 74 69 6e 65 73 20 | 76 65 72 79 20 73 69 6d |outines |very sim|
|00000700| 69 6c 61 72 20 74 6f 20 | 74 68 65 73 65 20 62 65 |ilar to |these be|
|00000710| 63 6f 6d 65 20 61 20 70 | 61 72 74 20 6f 66 20 53 |come a p|art of S|
|00000720| 74 61 6e 64 61 72 64 20 | 43 2e 20 41 6e 79 6f 6e |tandard |C. Anyon|
|00000730| 65 20 69 6e 74 65 72 65 | 73 74 65 64 20 69 6e 0d |e intere|sted in.|
|00000740| 77 72 69 74 69 6e 67 20 | 73 75 63 68 20 72 6f 75 |writing |such rou|
|00000750| 74 69 6e 65 73 20 73 68 | 6f 75 6c 64 20 72 65 61 |tines sh|ould rea|
|00000760| 64 3a 20 50 6c 61 75 67 | 65 72 2c 20 50 2e 20 4a |d: Plaug|er, P. J|
|00000770| 2e 20 28 31 39 39 32 29 | 20 54 68 65 20 53 74 61 |. (1992)| The Sta|
|00000780| 6e 64 61 72 64 20 43 20 | 4c 69 62 72 61 72 79 2e |ndard C |Library.|
|00000790| 0d 45 6e 67 6c 65 77 6f | 6f 64 20 43 6c 69 66 66 |.Englewo|od Cliff|
|000007a0| 73 2c 20 4e 4a 3a 20 50 | 72 65 6e 74 69 63 65 20 |s, NJ: P|rentice |
|000007b0| 48 61 6c 6c 2e 0d 0d 50 | 4f 52 54 41 42 49 4c 49 |Hall...P|ORTABILI|
|000007c0| 54 59 3a 20 53 74 61 6e | 64 61 72 64 20 43 2e 20 |TY: Stan|dard C. |
|000007d0| 53 68 6f 75 6c 64 20 77 | 6f 72 6b 20 6f 6e 20 4d |Should w|ork on M|
|000007e0| 6f 74 6f 72 6f 6c 61 20 | 61 6e 64 20 49 6e 74 65 |otorola |and Inte|
|000007f0| 6c 20 70 72 6f 63 65 73 | 73 6f 72 73 2c 20 62 75 |l proces|sors, bu|
|00000800| 74 20 68 61 73 0d 6f 6e | 6c 79 20 62 65 65 6e 20 |t has.on|ly been |
|00000810| 74 65 73 74 65 64 20 6f | 6e 20 36 38 30 78 30 20 |tested o|n 680x0 |
|00000820| 61 6e 64 20 50 6f 77 65 | 72 50 43 20 70 72 6f 63 |and Powe|rPC proc|
|00000830| 65 73 73 6f 72 73 20 69 | 6e 20 4d 61 63 69 6e 74 |essors i|n Macint|
|00000840| 6f 73 68 20 63 6f 6d 70 | 75 74 65 72 73 2e 0d 0d |osh comp|uters...|
|00000850| 48 49 53 54 4f 52 59 3a | 0d 38 2f 32 34 2f 39 31 |HISTORY:|.8/24/91|
|00000860| 20 64 67 70 09 6d 61 64 | 65 20 63 6f 6d 70 61 74 | dgp.mad|e compat|
|00000870| 69 62 6c 65 20 77 69 74 | 68 20 54 48 49 4e 4b 20 |ible wit|h THINK |
|00000880| 43 20 35 2e 30 2e 0d 31 | 32 2f 32 33 2f 39 31 20 |C 5.0..1|2/23/91 |
|00000890| 64 67 70 20 49 20 72 65 | 70 6c 61 63 65 64 20 74 |dgp I re|placed t|
|000008a0| 68 65 20 23 69 66 20 73 | 74 61 74 65 6d 65 6e 74 |he #if s|tatement|
|000008b0| 73 20 62 79 20 6f 72 64 | 69 6e 61 72 79 20 69 66 |s by ord|inary if|
|000008c0| 20 73 74 61 74 65 6d 65 | 6e 74 73 2c 20 77 68 69 | stateme|nts, whi|
|000008d0| 63 68 20 61 72 65 20 0d | 09 6d 6f 72 65 20 72 65 |ch are .|.more re|
|000008e0| 61 64 61 62 6c 65 20 61 | 6e 64 20 61 72 65 20 61 |adable a|nd are a|
|000008f0| 6c 6c 6f 77 65 64 20 74 | 6f 20 75 73 65 20 74 68 |llowed t|o use th|
|00000900| 65 20 73 69 7a 65 6f 66 | 28 29 20 6f 70 65 72 61 |e sizeof|() opera|
|00000910| 74 6f 72 2e 0d 09 4e 6f | 74 65 20 74 68 61 74 20 |tor...No|te that |
|00000920| 6d 6f 73 74 20 6f 66 20 | 74 68 65 20 69 66 20 73 |most of |the if s|
|00000930| 74 61 74 65 6d 65 6e 74 | 73 20 77 69 6c 6c 20 62 |tatement|s will b|
|00000940| 65 20 65 76 61 6c 75 61 | 74 65 64 20 61 6e 64 20 |e evalua|ted and |
|00000950| 72 65 6d 6f 76 65 64 20 | 62 79 20 74 68 65 0d 09 |removed |by the..|
|00000960| 63 6f 6d 70 69 6c 65 72 | 2c 20 77 69 74 68 20 6e |compiler|, with n|
|00000970| 6f 20 72 75 6e 74 69 6d | 65 20 70 65 6e 61 6c 74 |o runtim|e penalt|
|00000980| 79 2e 0d 31 32 2f 32 33 | 2f 39 31 20 64 67 70 20 |y..12/23|/91 dgp |
|00000990| 57 72 6f 74 65 20 6d 79 | 20 6f 77 6e 20 63 6f 64 |Wrote my| own cod|
|000009a0| 65 20 74 6f 20 72 65 70 | 6c 61 63 65 20 74 68 65 |e to rep|lace the|
|000009b0| 20 53 41 4e 45 20 63 6f | 64 65 20 73 69 6e 63 65 | SANE co|de since|
|000009c0| 20 69 74 27 73 20 74 6f | 6f 20 73 6c 6f 77 2e 0d | it's to|o slow..|
|000009d0| 09 54 68 69 73 20 6d 61 | 6b 65 73 20 49 73 4e 61 |.This ma|kes IsNa|
|000009e0| 6e 28 29 20 61 62 6f 75 | 74 20 35 20 74 69 6d 65 |n() abou|t 5 time|
|000009f0| 73 20 66 61 73 74 65 72 | 2e 0d 09 4d 79 20 63 6f |s faster|...My co|
|00000a00| 64 65 20 69 73 20 62 61 | 73 65 64 20 6f 6e 20 74 |de is ba|sed on t|
|00000a10| 68 65 20 41 70 70 6c 65 | 20 4e 75 6d 65 72 69 63 |he Apple| Numeric|
|00000a20| 73 20 4d 61 6e 75 61 6c | 2c 20 32 6e 64 20 65 64 |s Manual|, 2nd ed|
|00000a30| 69 74 69 6f 6e 2e 20 49 | 74 20 73 61 79 73 20 74 |ition. I|t says t|
|00000a40| 68 61 74 0d 09 61 20 6e | 75 6d 62 65 72 20 69 73 |hat..a n|umber is|
|00000a50| 20 61 20 4e 41 4e 20 69 | 66 66 20 74 68 65 20 65 | a NAN i|ff the e|
|00000a60| 78 70 6f 6e 65 6e 74 20 | 69 73 20 61 6c 6c 20 6f |xponent |is all o|
|00000a70| 6e 65 73 20 61 6e 64 20 | 74 68 65 20 66 72 61 63 |nes and |the frac|
|00000a80| 74 69 6f 6e 20 69 73 20 | 6e 6f 6e 7a 65 72 6f 2e |tion is |nonzero.|
|00000a90| 0d 09 49 20 6d 61 6b 65 | 20 61 20 73 6c 69 67 68 |..I make| a sligh|
|00000aa0| 74 20 73 68 6f 72 74 63 | 75 74 20 69 6e 20 63 68 |t shortc|ut in ch|
|00000ab0| 65 63 6b 69 6e 67 20 6f | 6e 6c 79 20 74 68 65 20 |ecking o|nly the |
|00000ac0| 74 6f 70 20 31 35 20 62 | 69 74 73 20 6f 66 20 74 |top 15 b|its of t|
|00000ad0| 68 65 20 66 72 61 63 74 | 69 6f 6e 2c 0d 09 73 69 |he fract|ion,..si|
|00000ae0| 6e 63 65 20 74 68 61 74 | 20 69 6e 63 6c 75 64 65 |nce that| include|
|00000af0| 73 20 74 68 65 20 62 79 | 74 65 20 74 68 61 74 20 |s the by|te that |
|00000b00| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 4e 41 |specifie|s the NA|
|00000b10| 4e 20 74 79 70 65 2c 20 | 6f 6e 20 74 68 65 20 70 |N type, |on the p|
|00000b20| 72 65 6d 69 73 65 0d 09 | 74 68 61 74 20 61 6c 6c |remise..|that all|
|00000b30| 20 4e 41 4e 73 20 74 68 | 61 74 20 49 20 77 69 6c | NANs th|at I wil|
|00000b40| 6c 20 61 63 74 75 61 6c | 6c 79 20 73 65 65 20 69 |l actual|ly see i|
|00000b50| 6e 20 70 72 61 63 74 69 | 63 65 20 77 69 6c 6c 20 |n practi|ce will |
|00000b60| 68 61 76 65 20 6e 6f 6e | 7a 65 72 6f 20 74 79 70 |have non|zero typ|
|00000b70| 65 2e 0d 09 4d 79 20 63 | 6f 64 65 20 68 61 6e 64 |e...My c|ode hand|
|00000b80| 6c 65 73 20 74 68 65 20 | 6f 72 64 69 6e 61 72 79 |les the |ordinary|
|00000b90| 20 63 61 73 65 73 20 6f | 66 20 31 30 20 6f 72 20 | cases o|f 10 or |
|00000ba0| 31 32 20 62 79 74 65 20 | 64 6f 75 62 6c 65 73 2e |12 byte |doubles.|
|00000bb0| 20 54 68 65 20 77 65 69 | 72 64 0d 09 63 61 73 65 | The wei|rd..case|
|00000bc0| 20 6f 66 20 73 68 6f 72 | 74 65 72 20 64 6f 75 62 | of shor|ter doub|
|00000bd0| 6c 65 73 20 28 77 68 69 | 63 68 20 61 72 65 20 75 |les (whi|ch are u|
|00000be0| 6e 6c 69 6b 65 6c 79 20 | 73 69 6e 63 65 20 74 68 |nlikely |since th|
|00000bf0| 65 79 20 72 75 6e 20 76 | 65 72 79 20 73 6c 6f 77 |ey run v|ery slow|
|00000c00| 6c 79 29 0d 09 61 72 65 | 20 64 65 74 65 63 74 65 |ly)..are| detecte|
|00000c10| 64 20 62 79 20 74 68 65 | 20 61 73 73 65 72 74 28 |d by the| assert(|
|00000c20| 29 20 74 65 73 74 20 61 | 74 20 74 68 65 20 62 65 |) test a|t the be|
|00000c30| 67 69 6e 6e 69 6e 67 2e | 0d 31 32 2f 32 33 2f 39 |ginning.|.12/23/9|
|00000c40| 31 20 64 67 70 20 41 73 | 6b 65 64 20 74 68 65 20 |1 dgp As|ked the |
|00000c50| 54 48 49 4e 4b 20 43 20 | 63 6f 6d 70 69 6c 65 72 |THINK C |compiler|
|00000c60| 20 6e 6f 74 20 74 6f 20 | 74 69 6d 65 20 74 68 69 | not to |time thi|
|00000c70| 73 20 72 6f 75 74 69 6e | 65 2e 0d 31 32 2f 32 39 |s routin|e..12/29|
|00000c80| 2f 39 31 20 64 67 70 20 | 45 6c 69 6d 69 6e 61 74 |/91 dgp |Eliminat|
|00000c90| 65 64 20 74 68 65 20 6e | 65 65 64 20 66 6f 72 20 |ed the n|eed for |
|00000ca0| 53 41 4e 45 2e 68 20 61 | 6e 64 20 54 79 70 65 73 |SANE.h a|nd Types|
|00000cb0| 2e 68 2e 20 54 68 65 20 | 53 41 4e 45 20 73 74 75 |.h. The |SANE stu|
|00000cc0| 66 66 0d 09 6e 6f 77 20 | 61 70 70 65 61 72 73 20 |ff..now |appears |
|00000cd0| 69 6e 20 69 74 73 20 6f | 77 6e 20 66 69 6c 65 3a |in its o|wn file:|
|00000ce0| 20 53 41 4e 45 2e 63 2e | 20 0d 09 57 72 6f 74 65 | SANE.c.| ..Wrote|
|00000cf0| 20 49 73 49 6e 66 28 29 | 2e 0d 09 57 72 6f 74 65 | IsInf()|...Wrote|
|00000d00| 20 61 20 6e 65 77 20 6d | 61 63 72 6f 20 64 65 66 | a new m|acro def|
|00000d10| 69 6e 69 74 69 6f 6e 2c | 20 69 6e 20 56 69 64 65 |inition,| in Vide|
|00000d20| 6f 54 6f 6f 6c 62 6f 78 | 2e 68 2c 20 66 6f 72 20 |oToolbox|.h, for |
|00000d30| 49 73 46 69 6e 69 74 65 | 28 29 2c 20 0d 09 74 68 |IsFinite|(), ..th|
|00000d40| 61 74 20 61 6c 6c 6f 77 | 73 20 66 61 73 74 20 69 |at allow|s fast i|
|00000d50| 6e 6c 69 6e 65 20 74 65 | 73 74 69 6e 67 20 66 6f |nline te|sting fo|
|00000d60| 72 20 77 68 65 74 68 65 | 72 20 61 20 6e 75 6d 62 |r whethe|r a numb|
|00000d70| 65 72 20 69 73 20 6f 6b | 2c 20 69 2e 65 2e 20 6e |er is ok|, i.e. n|
|00000d80| 65 69 74 68 65 72 20 0d | 09 4e 41 4e 20 6e 6f 72 |either .|.NAN nor|
|00000d90| 20 49 4e 46 2e 20 0d 31 | 2f 31 34 2f 39 32 09 64 | INF. .1|/14/92.d|
|00000da0| 67 70 09 43 68 61 6e 67 | 65 64 20 49 73 4e 61 6e |gp.Chang|ed IsNan|
|00000db0| 28 29 20 74 6f 20 6e 6f | 77 20 72 65 74 75 72 6e |() to no|w return|
|00000dc0| 20 74 68 65 20 74 79 70 | 65 20 28 31 2e 2e 32 35 | the typ|e (1..25|
|00000dd0| 35 29 20 6f 66 20 74 68 | 65 20 4e 41 4e 2c 20 6f |5) of th|e NAN, o|
|00000de0| 72 20 7a 65 72 6f 0d 09 | 69 66 20 6e 6f 74 20 61 |r zero..|if not a|
|00000df0| 20 4e 41 4e 2e 20 54 68 | 69 73 20 77 69 6c 6c 20 | NAN. Th|is will |
|00000e00| 62 72 65 61 6b 20 70 72 | 6f 67 72 61 6d 73 20 74 |break pr|ograms t|
|00000e10| 68 61 74 20 61 73 73 75 | 6d 65 20 74 68 65 20 74 |hat assu|me the t|
|00000e20| 72 75 65 20 76 61 6c 75 | 65 20 69 73 20 61 6c 77 |rue valu|e is alw|
|00000e30| 61 79 73 20 31 2c 0d 09 | 65 2e 67 2e 20 6e 61 6e |ays 1,..|e.g. nan|
|00000e40| 73 2b 3d 49 73 4e 61 6e | 28 61 29 3b 0d 09 46 69 |s+=IsNan|(a);..Fi|
|00000e50| 78 65 64 20 49 73 49 6e | 66 28 29 20 74 6f 20 63 |xed IsIn|f() to c|
|00000e60| 6f 72 72 65 63 74 6c 79 | 20 72 65 74 75 72 6e 20 |orrectly| return |
|00000e70| 73 69 67 6e 20 6f 66 20 | b1 49 4e 46 2e 0d 31 2f |sign of |.INF..1/|
|00000e80| 31 38 2f 39 32 09 64 67 | 70 09 52 65 77 72 6f 74 |18/92.dg|p.Rewrot|
|00000e90| 65 20 72 6f 75 74 69 6e | 65 73 2c 20 6d 61 6b 69 |e routin|es, maki|
|00000ea0| 6e 67 20 74 68 65 6d 20 | 73 69 6d 70 6c 65 72 2c |ng them |simpler,|
|00000eb0| 20 61 6e 64 20 61 6c 77 | 61 79 73 20 63 68 65 63 | and alw|ays chec|
|00000ec0| 6b 69 6e 67 20 74 68 65 | 20 6d 6f 73 74 20 0d 09 |king the| most ..|
|00000ed0| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 62 69 74 20 |signific|ant bit |
|00000ee0| 6f 66 20 74 68 65 20 6d | 61 6e 74 69 73 73 61 20 |of the m|antissa |
|00000ef0| 69 6e 20 74 65 73 74 69 | 6e 67 20 66 6f 72 20 4e |in testi|ng for N|
|00000f00| 41 4e 2e 0d 36 2f 35 2f | 39 33 09 64 67 70 09 55 |AN..6/5/|93.dgp.U|
|00000f10| 70 64 61 74 65 64 20 64 | 6f 63 75 6d 65 6e 74 61 |pdated d|ocumenta|
|00000f20| 74 69 6f 6e 2e 0d 37 2f | 33 31 2f 39 34 20 64 67 |tion..7/|31/94 dg|
|00000f30| 70 20 61 64 64 65 64 20 | 73 75 70 70 6f 72 74 20 |p added |support |
|00000f40| 66 6f 72 20 38 2d 62 79 | 74 65 20 64 6f 75 62 6c |for 8-by|te doubl|
|00000f50| 65 73 2c 20 74 6f 20 73 | 75 70 70 6f 72 74 20 74 |es, to s|upport t|
|00000f60| 68 65 20 50 6f 77 65 72 | 50 43 2e 0d 2a 2f 0d 0d |he Power|PC..*/..|
|00000f70| 23 69 6e 63 6c 75 64 65 | 20 22 56 69 64 65 6f 54 |#include| "VideoT|
|00000f80| 6f 6f 6c 62 6f 78 2e 68 | 22 0d 23 69 66 20 28 54 |oolbox.h|".#if (T|
|00000f90| 48 49 4e 4b 5f 43 20 7c | 7c 20 54 48 49 4e 4b 5f |HINK_C ||| THINK_|
|00000fa0| 43 50 4c 55 53 20 7c 7c | 20 53 59 4d 41 4e 54 45 |CPLUS ||| SYMANTE|
|00000fb0| 43 5f 43 29 0d 09 23 70 | 72 61 67 6d 61 20 6f 70 |C_C)..#p|ragma op|
|00000fc0| 74 69 6f 6e 73 28 21 70 | 72 6f 66 69 6c 65 29 09 |tions(!p|rofile).|
|00000fd0| 2f 2a 20 54 48 49 4e 4b | 20 43 3a 20 61 74 74 72 |/* THINK| C: attr|
|00000fe0| 69 62 75 74 65 20 74 6f | 20 74 68 65 20 63 61 6c |ibute to| the cal|
|00000ff0| 6c 65 72 20 74 68 65 20 | 74 69 6d 65 20 73 70 65 |ler the |time spe|
|00001000| 6e 74 20 68 65 72 65 2e | 20 2a 2f 0d 23 65 6e 64 |nt here.| */.#end|
|00001010| 69 66 0d 23 64 65 66 69 | 6e 65 20 45 58 50 4f 4e |if.#defi|ne EXPON|
|00001020| 45 4e 54 20 30 0d 23 64 | 65 66 69 6e 65 20 4d 41 |ENT 0.#d|efine MA|
|00001030| 4e 54 49 53 53 41 20 28 | 28 73 69 7a 65 6f 66 28 |NTISSA (|(sizeof(|
|00001040| 64 6f 75 62 6c 65 29 2d | 38 29 2f 32 29 0d 69 6e |double)-|8)/2).in|
|00001050| 74 20 49 73 4e 61 6e 28 | 64 6f 75 62 6c 65 20 78 |t IsNan(|double x|
|00001060| 29 3b 0d 69 6e 74 20 49 | 73 49 6e 66 28 64 6f 75 |);.int I|sInf(dou|
|00001070| 62 6c 65 20 78 29 3b 0d | 23 64 65 66 69 6e 65 20 |ble x);.|#define |
|00001080| 7a 65 72 6f 43 6f 64 65 | 20 32 31 09 2f 2a 20 4e |zeroCode| 21./* N|
|00001090| 61 4e 20 77 69 74 68 20 | 7a 65 72 6f 20 63 6f 64 |aN with |zero cod|
|000010a0| 65 20 2a 2f 0d 0d 69 6e | 74 20 49 73 4e 61 6e 28 |e */..in|t IsNan(|
|000010b0| 64 6f 75 62 6c 65 20 78 | 29 0d 2f 2a 20 52 65 74 |double x|)./* Ret|
|000010c0| 75 72 6e 73 20 78 27 73 | 20 4e 41 4e 20 74 79 70 |urns x's| NAN typ|
|000010d0| 65 20 28 31 2e 2e 2e 32 | 35 35 29 20 6f 72 20 7a |e (1...2|55) or z|
|000010e0| 65 72 6f 20 69 66 20 78 | 20 69 73 20 6e 6f 74 20 |ero if x| is not |
|000010f0| 61 20 4e 41 4e 2e 20 2a | 2f 0d 2f 2a 20 49 66 20 |a NAN. *|/./* If |
|00001100| 4e 61 4e 20 74 79 70 65 | 20 69 73 20 7a 65 72 6f |NaN type| is zero|
|00001110| 2c 20 72 65 74 75 72 6e | 20 7a 65 72 6f 43 6f 64 |, return| zeroCod|
|00001120| 65 2e 20 2a 2f 0d 7b 0d | 09 72 65 67 69 73 74 65 |e. */.{.|.registe|
|00001130| 72 20 73 68 6f 72 74 20 | 69 3b 0d 09 72 65 67 69 |r short |i;..regi|
|00001140| 73 74 65 72 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |ster uns|igned lo|
|00001150| 6e 67 20 6a 3b 0d 0d 09 | 73 77 69 74 63 68 28 73 |ng j;...|switch(s|
|00001160| 69 7a 65 6f 66 28 64 6f | 75 62 6c 65 29 29 7b 0d |izeof(do|uble)){.|
|00001170| 09 63 61 73 65 20 38 3a | 0d 09 09 6a 3d 28 28 75 |.case 8:|...j=((u|
|00001180| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 2a 29 26 |nsigned |long *)&|
|00001190| 78 29 5b 30 5d 3b 0d 09 | 09 69 66 28 28 6a 20 26 |x)[0];..|.if((j &|
|000011a0| 20 30 78 37 46 46 30 30 | 30 30 30 29 3d 3d 30 78 | 0x7FF00|000)==0x|
|000011b0| 37 46 46 30 30 30 30 30 | 29 7b 09 09 2f 2a 20 65 |7FF00000|){../* e|
|000011c0| 69 74 68 65 72 20 4e 41 | 4e 20 6f 72 20 49 4e 46 |ither NA|N or INF|
|000011d0| 20 2a 2f 0d 09 09 09 6a | 26 3d 30 78 46 46 46 46 | */....j|&=0xFFFF|
|000011e0| 46 3b 09 09 09 09 09 09 | 09 2f 2a 20 6d 61 6e 74 |F;......|./* mant|
|000011f0| 69 73 73 61 20 2a 2f 0d | 09 09 09 69 66 28 6a 3d |issa */.|...if(j=|
|00001200| 3d 30 20 26 26 20 28 28 | 75 6e 73 69 67 6e 65 64 |=0 && ((|unsigned|
|00001210| 20 6c 6f 6e 67 20 2a 29 | 26 78 29 5b 31 5d 3d 3d | long *)|&x)[1]==|
|00001220| 30 29 72 65 74 75 72 6e | 20 30 3b 09 2f 2a 20 49 |0)return| 0;./* I|
|00001230| 4e 46 20 2a 2f 0d 09 09 | 09 69 3d 6a 3e 3e 35 3b |NF */...|.i=j>>5;|
|00001240| 0d 09 09 7d 65 6c 73 65 | 20 72 65 74 75 72 6e 20 |...}else| return |
|00001250| 30 3b 0d 09 09 62 72 65 | 61 6b 3b 0d 09 63 61 73 |0;...bre|ak;..cas|
|00001260| 65 20 31 30 3a 0d 09 63 | 61 73 65 20 31 32 3a 0d |e 10:..c|ase 12:.|
|00001270| 09 09 69 66 28 28 28 28 | 73 68 6f 72 74 20 2a 29 |..if((((|short *)|
|00001280| 26 78 29 5b 45 58 50 4f | 4e 45 4e 54 5d 20 26 20 |&x)[EXPO|NENT] & |
|00001290| 30 78 37 46 46 46 29 3d | 3d 30 78 37 46 46 46 29 |0x7FFF)=|=0x7FFF)|
|000012a0| 7b 09 09 2f 2a 20 65 69 | 74 68 65 72 20 4e 41 4e |{../* ei|ther NAN|
|000012b0| 20 6f 72 20 49 4e 46 20 | 2a 2f 0d 09 09 09 69 3d | or INF |*/....i=|
|000012c0| 28 28 73 68 6f 72 74 20 | 2a 29 26 78 29 5b 4d 41 |((short |*)&x)[MA|
|000012d0| 4e 54 49 53 53 41 5d 20 | 26 20 30 78 37 46 46 46 |NTISSA] |& 0x7FFF|
|000012e0| 3b 0d 09 09 09 69 66 28 | 69 3d 3d 30 29 72 65 74 |;....if(|i==0)ret|
|000012f0| 75 72 6e 20 30 3b 0d 09 | 09 7d 65 6c 73 65 20 72 |urn 0;..|.}else r|
|00001300| 65 74 75 72 6e 20 30 3b | 0d 09 09 62 72 65 61 6b |eturn 0;|...break|
|00001310| 3b 0d 09 64 65 66 61 75 | 6c 74 3a 0d 09 09 50 72 |;..defau|lt:...Pr|
|00001320| 69 6e 74 66 45 78 69 74 | 28 22 25 73 20 6c 69 6e |intfExit|("%s lin|
|00001330| 65 20 25 64 3a 20 49 6c | 6c 65 67 61 6c 20 73 69 |e %d: Il|legal si|
|00001340| 7a 65 6f 66 28 64 6f 75 | 62 6c 65 29 3d 3d 25 6c |zeof(dou|ble)==%l|
|00001350| 64 5c 6e 22 0d 09 09 09 | 2c 5f 5f 46 49 4c 45 5f |d\n"....|,__FILE_|
|00001360| 5f 2c 5f 5f 4c 49 4e 45 | 5f 5f 2c 73 69 7a 65 6f |_,__LINE|__,sizeo|
|00001370| 66 28 64 6f 75 62 6c 65 | 29 29 3b 0d 09 7d 0d 09 |f(double|));..}..|
|00001380| 69 26 3d 30 78 46 46 3b | 0d 09 69 66 28 69 3d 3d |i&=0xFF;|..if(i==|
|00001390| 30 29 69 3d 7a 65 72 6f | 43 6f 64 65 3b 0d 09 72 |0)i=zero|Code;..r|
|000013a0| 65 74 75 72 6e 20 69 3b | 0d 7d 0d 0d 69 6e 74 20 |eturn i;|.}..int |
|000013b0| 49 73 49 6e 66 28 64 6f | 75 62 6c 65 20 78 29 0d |IsInf(do|uble x).|
|000013c0| 2f 2a 20 52 65 74 75 72 | 6e 73 20 2d 31 20 66 6f |/* Retur|ns -1 fo|
|000013d0| 72 20 2d 49 4e 46 2c 20 | 30 20 66 6f 72 20 6e 6f |r -INF, |0 for no|
|000013e0| 74 20 49 4e 46 2c 20 61 | 6e 64 20 2b 31 20 66 6f |t INF, a|nd +1 fo|
|000013f0| 72 20 2b 49 4e 46 2e 20 | 2a 2f 0d 7b 0d 09 72 65 |r +INF. |*/.{..re|
|00001400| 67 69 73 74 65 72 20 73 | 68 6f 72 74 20 69 3b 0d |gister s|hort i;.|
|00001410| 09 72 65 67 69 73 74 65 | 72 20 6c 6f 6e 67 20 6a |.registe|r long j|
|00001420| 3b 0d 0d 09 73 77 69 74 | 63 68 28 73 69 7a 65 6f |;...swit|ch(sizeo|
|00001430| 66 28 64 6f 75 62 6c 65 | 29 29 7b 0d 09 63 61 73 |f(double|)){..cas|
|00001440| 65 20 38 3a 0d 09 09 6a | 3d 28 28 6c 6f 6e 67 20 |e 8:...j|=((long |
|00001450| 2a 29 26 78 29 5b 30 5d | 3b 0d 09 09 69 66 28 28 |*)&x)[0]|;...if((|
|00001460| 6a 20 26 20 30 78 37 46 | 46 30 30 30 30 30 29 3d |j & 0x7F|F00000)=|
|00001470| 3d 30 78 37 46 46 30 30 | 30 30 30 29 7b 09 09 09 |=0x7FF00|000){...|
|00001480| 09 09 2f 2a 20 65 69 74 | 68 65 72 20 4e 41 4e 20 |../* eit|her NAN |
|00001490| 6f 72 20 49 4e 46 20 2a | 2f 0d 09 09 09 69 66 28 |or INF *|/....if(|
|000014a0| 6a 26 30 78 46 46 46 46 | 46 3d 3d 30 20 26 26 20 |j&0xFFFF|F==0 && |
|000014b0| 28 28 6c 6f 6e 67 20 2a | 29 26 78 29 5b 31 5d 3d |((long *|)&x)[1]=|
|000014c0| 3d 30 29 7b 0d 09 09 09 | 09 69 66 28 6a 3c 30 29 |=0){....|.if(j<0)|
|000014d0| 72 65 74 75 72 6e 20 2d | 31 3b 09 09 09 09 09 09 |return -|1;......|
|000014e0| 09 2f 2a 20 20 2d 49 4e | 46 20 2a 2f 0d 09 09 09 |./* -IN|F */....|
|000014f0| 09 65 6c 73 65 20 72 65 | 74 75 72 6e 20 31 3b 09 |.else re|turn 1;.|
|00001500| 09 09 09 09 09 09 09 2f | 2a 20 20 2b 49 4e 46 20 |......./|* +INF |
|00001510| 2a 2f 0d 09 09 09 7d 0d | 09 09 7d 0d 09 09 62 72 |*/....}.|..}...br|
|00001520| 65 61 6b 3b 0d 09 63 61 | 73 65 20 31 30 3a 0d 09 |eak;..ca|se 10:..|
|00001530| 63 61 73 65 20 31 32 3a | 0d 09 09 69 3d 28 28 73 |case 12:|...i=((s|
|00001540| 68 6f 72 74 20 2a 29 26 | 78 29 5b 45 58 50 4f 4e |hort *)&|x)[EXPON|
|00001550| 45 4e 54 5d 3b 0d 09 09 | 69 66 28 28 69 20 26 20 |ENT];...|if((i & |
|00001560| 30 78 37 46 46 46 29 3d | 3d 30 78 37 46 46 46 29 |0x7FFF)=|=0x7FFF)|
|00001570| 7b 09 09 09 09 09 09 09 | 2f 2a 20 20 65 69 74 68 |{.......|/* eith|
|00001580| 65 72 20 4e 41 4e 20 6f | 72 20 49 4e 46 20 2a 2f |er NAN o|r INF */|
|00001590| 0d 09 09 09 69 66 28 28 | 28 28 73 68 6f 72 74 20 |....if((|((short |
|000015a0| 2a 29 26 78 29 5b 4d 41 | 4e 54 49 53 53 41 5d 20 |*)&x)[MA|NTISSA] |
|000015b0| 26 20 30 78 37 46 46 46 | 29 3d 3d 30 29 7b 0d 09 |& 0x7FFF|)==0){..|
|000015c0| 09 09 09 69 66 28 69 3c | 30 29 72 65 74 75 72 6e |...if(i<|0)return|
|000015d0| 20 2d 31 3b 09 09 09 09 | 09 09 09 2f 2a 20 20 2d | -1;....|.../* -|
|000015e0| 49 4e 46 20 2a 2f 0d 09 | 09 09 09 65 6c 73 65 20 |INF */..|...else |
|000015f0| 72 65 74 75 72 6e 20 31 | 3b 09 09 09 09 09 09 09 |return 1|;.......|
|00001600| 09 2f 2a 20 20 2b 49 4e | 46 20 2a 2f 0d 09 09 09 |./* +IN|F */....|
|00001610| 7d 0d 09 09 7d 0d 09 09 | 62 72 65 61 6b 3b 0d 09 |}...}...|break;..|
|00001620| 64 65 66 61 75 6c 74 3a | 0d 09 09 50 72 69 6e 74 |default:|...Print|
|00001630| 66 45 78 69 74 28 22 25 | 73 20 6c 69 6e 65 20 25 |fExit("%|s line %|
|00001640| 64 3a 20 49 6c 6c 65 67 | 61 6c 20 73 69 7a 65 6f |d: Illeg|al sizeo|
|00001650| 66 28 64 6f 75 62 6c 65 | 29 3d 3d 25 6c 64 5c 6e |f(double|)==%ld\n|
|00001660| 22 0d 09 09 09 2c 5f 5f | 46 49 4c 45 5f 5f 2c 5f |"....,__|FILE__,_|
|00001670| 5f 4c 49 4e 45 5f 5f 2c | 73 69 7a 65 6f 66 28 64 |_LINE__,|sizeof(d|
|00001680| 6f 75 62 6c 65 29 29 3b | 0d 09 7d 0d 09 72 65 74 |ouble));|..}..ret|
|00001690| 75 72 6e 20 30 3b 0d 7d | 0d 00 00 00 00 00 00 00 |urn 0;.}|........|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00001710| 8d 01 67 3e 7f 02 20 ad | fb fe 7f 7e 01 00 74 4c |..g>.. .|...~..tL|
|00001720| 01 f9 78 7f 7e 01 00 70 | 4c 01 f9 6e 8d 6d 20 05 |..x.~..p|L..n.m .|
|00001730| 07 49 73 4e 61 6e 2e 63 | 02 00 00 00 54 45 58 54 |.IsNan.c|....TEXT|
|00001740| 43 57 49 45 01 00 00 78 | 02 a0 00 00 00 00 ad 79 |CWIE...x|.......y|
|00001750| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 78 02 a0 |..TEXTCW|IE...x..|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 a5 9d 63 35 00 00 | 16 19 00 00 01 c8 13 ed |....c5..|........|
|00001780| 08 02 00 00 40 03 81 2b | 00 15 4a 81 67 01 67 70 |....@..+|..J.g.gp|
|00001790| 60 50 01 15 aa f4 b2 5f | 95 95 3c 01 08 82 7c ba |`P....._|..<...|.|
|000017a0| 78 56 7f 13 48 68 00 68 | 4e ad 01 08 6a 67 de b4 |xV..Hh.h|N...jg..|
|000017b0| 15 d2 80 2f 01 4e ad 04 | 92 3d 40 93 7c 5f 78 56 |.../.N..|.=@.|_xV|
|000017c0| 7f 20 0b 01 08 72 67 de | b4 20 0c 5b 20 03 5f 02 |. ...rg.|. .[ ._.|
|000017d0| 20 d9 20 d9 68 54 3e 3f | 4b 01 4a 6e 75 01 57 c0 | . .hT>?|K.Jnu.W.|
|000017e0| fb 25 26 5a 4f 44 01 00 | a0 7f 01 08 e8 a3 3b 24 |.%&ZOD..|......;$|
|000017f0| 01 ff c4 5c 9b 8c 4d 57 | 01 ff c8 50 13 02 02 4a |...\..MW|...P...J|
|00001800| 00 00 00 1e 00 02 00 00 | 13 43 00 00 13 48 05 49 |........|.C...H.I|
|00001810| 73 49 6e 66 00 00 10 19 | 00 00 10 1e 05 49 73 4e |sInf....|.....IsN|
|00001820| 61 6e 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |an...H..|Monaco..|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 3d 00 03 |........|.....=..|
|00001850| 02 4a 02 b8 00 3d 00 03 | 02 4a 02 b8 ad 65 0e dd |.J...=..|.J...e..|
|00001860| 00 00 16 19 00 00 16 19 | 00 00 13 7b 00 00 00 00 |........|...{....|
|00001870| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00001880| 00 76 00 00 00 52 01 bb | c7 28 37 16 00 00 00 1c |.v...R..|.(7.....|
|00001890| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|000018a0| 00 00 00 2a 03 ef ff ff | 00 00 00 00 00 00 00 00 |...*....|........|
|000018b0| 03 ed ff ff 00 00 00 22 | 00 00 00 00 03 f0 ff ff |......."|........|
|000018c0| 00 00 00 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+