/ BBS in a Box 22
/ AMUG_22-4.ISO / Files IV / Prog / T / TinyTools-2.sit / TinyTools / fixit.h ![]() | < prev | next > |
MacBinary | 1997-10-07 | 2.5 KB | [TEXT/MPS ] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
1% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Tue Oct 7 02:47:03 1997, modified Tue Oct 7 02:47:03 1997, creator 'MPS ', type ASCII, 1810 bytes "fixit.h" , at 0x792 428 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | dearkID | deark: macbinary | default | |
100% | lsar | MacBinary | default | |
100% | librempegprobeID | NGC (Nintendo DSP Standard) (ngcdspstd) | default (weak) |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [MPS ] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 66 69 78 69 74 2e | 68 00 00 00 00 00 00 00 |..fixit.|h.......|
|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 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 07 12 00 | 00 01 ac b0 5f 8b 67 b0 |........|...._.g.|
|00000060| 5f 8b 67 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |_.g.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 67 f8 00 00 |........|....g...|
|00000080| 2f 2a 20 46 69 6c 65 20 | 66 69 78 69 74 2e 68 20 |/* File |fixit.h |
|00000090| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 31 39 |Copyrigh|t (C) 19|
|000000a0| 39 36 20 62 79 20 4a 6f | 68 6e 20 52 2e 20 4d 6f |96 by Jo|hn R. Mo|
|000000b0| 6e 74 62 72 69 61 6e 64 | 2e 20 20 41 6c 6c 20 52 |ntbriand|. All R|
|000000c0| 69 67 68 74 73 20 52 65 | 73 65 72 76 65 64 2e 20 |ights Re|served. |
|000000d0| 2a 2f 0d 0d 23 69 66 6e | 64 65 66 20 5f 5f 46 49 |*/..#ifn|def __FI|
|000000e0| 58 49 54 5f 5f 0d 23 64 | 65 66 69 6e 65 20 5f 5f |XIT__.#d|efine __|
|000000f0| 46 49 58 49 54 5f 5f 0d | 0d 2f 2a 20 46 69 6c 65 |FIXIT__.|./* File|
|00000100| 20 66 69 78 69 74 2e 68 | 0d 09 73 6f 6d 65 20 65 | fixit.h|..some e|
|00000110| 78 74 72 61 20 66 69 78 | 65 64 20 6d 61 74 68 20 |xtra fix|ed math |
|00000120| 72 6f 75 74 69 6e 65 73 | 2e 0d 09 43 6f 70 79 72 |routines|...Copyr|
|00000130| 69 67 68 74 20 28 63 29 | 20 31 39 39 37 20 62 79 |ight (c)| 1997 by|
|00000140| 20 4a 6f 68 6e 20 4d 6f | 6e 74 62 72 69 61 6e 64 | John Mo|ntbriand|
|00000150| 2e 20 20 41 6c 6c 20 52 | 69 67 68 74 73 20 52 65 |. All R|ights Re|
|00000160| 73 65 72 76 65 64 2e 0d | 09 50 65 72 6d 69 73 73 |served..|.Permiss|
|00000170| 69 6f 6e 20 67 72 61 6e | 74 65 64 20 66 6f 72 20 |ion gran|ted for |
|00000180| 70 75 62 6c 69 63 20 75 | 73 65 2e 0d 09 44 69 73 |public u|se...Dis|
|00000190| 74 72 69 62 75 74 65 20 | 66 72 65 65 6c 79 20 69 |tribute |freely i|
|000001a0| 6e 20 61 72 65 61 73 20 | 77 68 65 72 65 20 74 68 |n areas |where th|
|000001b0| 65 20 6c 61 77 73 20 6f | 66 20 63 6f 70 79 72 69 |e laws o|f copyri|
|000001c0| 67 68 74 20 61 70 70 6c | 79 2e 0d 09 55 53 45 20 |ght appl|y...USE |
|000001d0| 41 54 20 59 4f 55 52 20 | 4f 57 4e 20 52 49 53 4b |AT YOUR |OWN RISK|
|000001e0| 2e 0d 09 44 4f 20 4e 4f | 54 20 44 49 53 54 52 49 |...DO NO|T DISTRI|
|000001f0| 42 55 54 45 20 4d 4f 44 | 49 46 49 45 44 20 43 4f |BUTE MOD|IFIED CO|
|00000200| 50 49 45 53 2e 0d 09 43 | 6f 6d 6d 65 6e 74 73 2f |PIES...C|omments/|
|00000210| 71 75 65 73 74 69 6f 6e | 73 2f 70 6f 73 74 63 61 |question|s/postca|
|00000220| 72 64 73 20 74 6f 20 74 | 68 65 20 61 75 74 68 6f |rds to t|he autho|
|00000230| 72 20 61 74 20 74 68 65 | 20 61 64 64 72 65 73 73 |r at the| address|
|00000240| 3a 0d 09 09 4a 6f 68 6e | 20 4d 6f 6e 74 62 72 69 |:...John| Montbri|
|00000250| 61 6e 64 0d 09 09 50 2e | 4f 2e 20 42 6f 78 2e 20 |and...P.|O. Box. |
|00000260| 31 31 33 33 0d 09 09 53 | 61 73 6b 61 74 6f 6f 6e |1133...S|askatoon|
|00000270| 20 53 61 73 6b 61 74 63 | 68 65 77 61 6e 20 43 61 | Saskatc|hewan Ca|
|00000280| 6e 61 64 61 0d 09 09 53 | 37 4b 20 33 4e 32 0d 09 |nada...S|7K 3N2..|
|00000290| 6f 72 20 62 79 20 65 6d | 61 69 6c 20 61 74 3a 0d |or by em|ail at:.|
|000002a0| 09 09 74 69 6e 79 6a 6f | 68 6e 40 73 6b 2e 73 79 |..tinyjo|hn@sk.sy|
|000002b0| 6d 70 61 74 69 63 6f 2e | 63 61 0d 09 49 66 20 79 |mpatico.|ca..If y|
|000002c0| 6f 75 20 77 6f 75 6c 64 | 20 6c 69 6b 65 20 74 6f |ou would| like to|
|000002d0| 20 68 61 76 65 3a 0d 09 | 09 74 65 63 68 6e 69 63 | have:..|.technic|
|000002e0| 61 6c 20 73 75 70 70 6f | 72 74 20 72 65 67 61 72 |al suppo|rt regar|
|000002f0| 64 69 6e 67 20 74 68 69 | 73 20 66 69 6c 65 2c 20 |ding thi|s file, |
|00000300| 73 65 6e 64 20 61 20 70 | 6f 73 74 63 61 72 64 2e |send a p|ostcard.|
|00000310| 0d 09 73 65 65 20 61 6c | 73 6f 3a 0d 09 09 68 74 |..see al|so:...ht|
|00000320| 74 70 3a 2f 2f 77 77 77 | 33 2e 73 6b 2e 73 79 6d |tp://www|3.sk.sym|
|00000330| 70 61 74 69 63 6f 2e 63 | 61 2f 74 69 6e 79 6a 6f |patico.c|a/tinyjo|
|00000340| 68 6e 0d 20 20 20 20 0d | 2a 2f 0d 0d 23 69 6e 63 |hn. .|*/..#inc|
|00000350| 6c 75 64 65 20 3c 54 79 | 70 65 73 2e 68 3e 0d 23 |lude <Ty|pes.h>.#|
|00000360| 69 6e 63 6c 75 64 65 20 | 3c 46 69 78 4d 61 74 68 |include |<FixMath|
|00000370| 2e 68 3e 0d 0d 23 69 66 | 64 65 66 20 5f 5f 63 70 |.h>..#if|def __cp|
|00000380| 6c 75 73 70 6c 75 73 0d | 65 78 74 65 72 6e 20 22 |lusplus.|extern "|
|00000390| 43 22 20 7b 0d 23 65 6e | 64 69 66 0d 0d 09 2f 2a |C" {.#en|dif.../*|
|000003a0| 20 73 6f 6d 65 20 75 73 | 65 66 75 6c 20 63 6f 6e | some us|eful con|
|000003b0| 73 74 61 6e 74 73 20 2a | 2f 0d 09 0d 23 64 65 66 |stants *|/...#def|
|000003c0| 69 6e 65 20 66 78 50 49 | 20 20 20 20 20 30 78 30 |ine fxPI| 0x0|
|000003d0| 30 30 33 32 34 33 46 20 | 20 2f 2a 20 3d 20 33 2e |003243F | /* = 3.|
|000003e0| 31 34 31 35 39 32 20 20 | 70 69 20 2a 2f 0d 23 64 |141592 |pi */.#d|
|000003f0| 65 66 69 6e 65 20 66 78 | 45 20 20 20 20 20 20 30 |efine fx|E 0|
|00000400| 78 30 30 30 32 42 37 45 | 31 20 20 2f 2a 20 3d 20 |x0002B7E|1 /* = |
|00000410| 32 2e 37 31 38 32 38 32 | 20 20 65 20 2a 2f 0d 23 |2.718282| e */.#|
|00000420| 64 65 66 69 6e 65 20 66 | 78 47 4f 4c 44 45 4e 20 |define f|xGOLDEN |
|00000430| 30 78 30 30 30 31 39 45 | 33 37 20 20 2f 2a 20 3d |0x00019E|37 /* =|
|00000440| 20 31 2e 36 31 38 30 33 | 34 20 20 67 6f 6c 64 65 | 1.61803|4 golde|
|00000450| 6e 20 72 61 74 69 6f 20 | 2a 2f 0d 23 64 65 66 69 |n ratio |*/.#defi|
|00000460| 6e 65 20 66 78 52 50 44 | 20 20 20 20 30 78 30 30 |ne fxRPD| 0x00|
|00000470| 30 30 30 34 37 38 20 20 | 2f 2a 20 3d 20 30 2e 30 |000478 |/* = 0.0|
|00000480| 31 37 34 35 33 20 20 72 | 61 64 69 61 6e 73 20 70 |17453 r|adians p|
|00000490| 65 72 20 64 65 67 72 65 | 65 20 2a 2f 0d 23 64 65 |er degre|e */.#de|
|000004a0| 66 69 6e 65 20 66 78 44 | 50 52 20 20 20 20 30 78 |fine fxD|PR 0x|
|000004b0| 30 30 33 39 34 42 42 38 | 20 20 2f 2a 20 3d 20 35 |00394BB8| /* = 5|
|000004c0| 37 2e 32 39 35 37 38 20 | 20 64 65 67 72 65 65 73 |7.29578 | degrees|
|000004d0| 20 70 65 72 20 72 61 64 | 69 61 6e 20 2a 2f 0d 0d | per rad|ian */..|
|000004e0| 0d 2f 2a 20 46 69 78 53 | 71 72 74 20 63 61 6c 63 |./* FixS|qrt calc|
|000004f0| 75 6c 61 74 65 73 20 74 | 68 65 20 73 71 75 61 72 |ulates t|he squar|
|00000500| 65 20 72 6f 6f 74 20 6f | 66 20 74 68 65 20 66 69 |e root o|f the fi|
|00000510| 78 65 64 20 70 6f 69 6e | 74 0d 09 6e 75 6d 62 65 |xed poin|t..numbe|
|00000520| 72 20 78 2e 20 2a 2f 0d | 46 69 78 65 64 20 46 69 |r x. */.|Fixed Fi|
|00000530| 78 53 71 72 74 28 46 69 | 78 65 64 20 78 29 3b 0d |xSqrt(Fi|xed x);.|
|00000540| 0d 2f 2a 20 46 69 78 45 | 78 70 20 63 61 6c 63 75 |./* FixE|xp calcu|
|00000550| 6c 61 74 65 73 20 78 20 | 74 6f 20 74 68 65 20 70 |lates x |to the p|
|00000560| 6f 77 65 72 20 61 20 77 | 68 65 72 65 20 62 6f 74 |ower a w|here bot|
|00000570| 68 20 78 20 61 6e 64 0d | 09 61 20 61 72 65 20 66 |h x and.|.a are f|
|00000580| 69 78 65 64 20 70 6f 69 | 6e 74 20 6e 75 6d 62 65 |ixed poi|nt numbe|
|00000590| 72 73 20 2a 2f 0d 46 69 | 78 65 64 20 46 69 78 45 |rs */.Fi|xed FixE|
|000005a0| 78 70 28 46 69 78 65 64 | 20 78 2c 20 46 69 78 65 |xp(Fixed| x, Fixe|
|000005b0| 64 20 61 29 3b 0d 0d 2f | 2a 20 46 69 78 53 71 75 |d a);../|* FixSqu|
|000005c0| 61 72 65 20 63 61 6c 63 | 75 6c 61 74 65 73 20 74 |are calc|ulates t|
|000005d0| 68 65 20 73 71 75 61 72 | 65 20 6f 66 20 74 68 65 |he squar|e of the|
|000005e0| 20 66 69 78 65 64 20 70 | 6f 69 6e 74 0d 09 6e 75 | fixed p|oint..nu|
|000005f0| 6d 62 65 72 20 78 2e 20 | 2a 2f 0d 46 69 78 65 64 |mber x. |*/.Fixed|
|00000600| 20 46 69 78 53 71 75 61 | 72 65 28 46 69 78 65 64 | FixSqua|re(Fixed|
|00000610| 20 78 29 3b 0d 0d 2f 2a | 20 46 69 78 43 6f 73 20 | x);../*| FixCos |
|00000620| 63 61 6c 63 75 6c 61 74 | 65 73 20 74 68 65 20 63 |calculat|es the c|
|00000630| 6f 73 69 6e 65 20 6f 66 | 20 74 68 65 20 66 69 78 |osine of| the fix|
|00000640| 65 64 20 70 6f 69 6e 74 | 0d 09 6e 75 6d 62 65 72 |ed point|..number|
|00000650| 20 78 2e 20 78 20 69 73 | 20 69 6e 20 72 61 64 69 | x. x is| in radi|
|00000660| 61 6e 73 2e 20 2a 2f 0d | 46 69 78 65 64 20 46 69 |ans. */.|Fixed Fi|
|00000670| 78 43 6f 73 28 46 69 78 | 65 64 20 78 29 3b 0d 0d |xCos(Fix|ed x);..|
|00000680| 2f 2a 20 46 69 78 53 69 | 6e 20 63 61 6c 63 75 6c |/* FixSi|n calcul|
|00000690| 61 74 65 73 20 74 68 65 | 20 73 69 6e 65 20 6f 66 |ates the| sine of|
|000006a0| 20 74 68 65 20 66 69 78 | 65 64 20 70 6f 69 6e 74 | the fix|ed point|
|000006b0| 0d 09 6e 75 6d 62 65 72 | 20 78 2e 20 78 20 69 73 |..number| x. x is|
|000006c0| 20 69 6e 20 72 61 64 69 | 61 6e 73 2e 20 2a 2f 0d | in radi|ans. */.|
|000006d0| 46 69 78 65 64 20 46 69 | 78 53 69 6e 28 46 69 78 |Fixed Fi|xSin(Fix|
|000006e0| 65 64 20 78 29 3b 0d 0d | 2f 2a 20 46 69 78 54 61 |ed x);..|/* FixTa|
|000006f0| 6e 20 63 61 6c 63 75 6c | 61 74 65 73 20 74 68 65 |n calcul|ates the|
|00000700| 20 74 61 6e 67 65 6e 74 | 20 6f 66 20 74 68 65 20 | tangent| of the |
|00000710| 66 69 78 65 64 20 70 6f | 69 6e 74 0d 09 6e 75 6d |fixed po|int..num|
|00000720| 62 65 72 20 78 2e 20 78 | 20 69 73 20 69 6e 20 72 |ber x. x| is in r|
|00000730| 61 64 69 61 6e 73 2e 20 | 2a 2f 0d 46 69 78 65 64 |adians. |*/.Fixed|
|00000740| 20 46 69 78 54 61 6e 28 | 46 69 78 65 64 20 78 29 | FixTan(|Fixed x)|
|00000750| 3b 0d 0d 23 69 66 64 65 | 66 20 5f 5f 63 70 6c 75 |;..#ifde|f __cplu|
|00000760| 73 70 6c 75 73 0d 7d 0d | 23 65 6e 64 69 66 0d 0d |splus.}.|#endif..|
|00000770| 23 65 6e 64 69 66 0d 0d | 2f 2a 20 65 6e 64 20 6f |#endif..|/* end o|
|00000780| 66 20 66 69 6c 65 20 66 | 69 78 69 74 2e 68 20 2a |f file f|ixit.h *|
|00000790| 2f 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000810| 20 50 22 68 00 34 4e 91 | 4f ef 00 10 60 00 04 7c | P"h.4N.|O...`..||
|00000820| 48 6e 00 18 4e ad 0e ea | 0c 80 65 6e 75 6d 58 4f |Hn..N...|..enumXO|
|00000830| 07 66 69 78 69 74 2e 68 | 02 00 00 00 54 45 58 54 |.fixit.h|....TEXT|
|00000840| 4d 50 53 20 01 00 ff ff | ff ff 00 00 00 00 39 d9 |MPS ....|......9.|
|00000850| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 ad 54 05 7c 00 00 | 07 12 00 00 01 ac 4e 91 |...T.|..|......N.|
|00000880| 48 6e fe e4 4e ad 10 fa | 2d 40 fe f4 2f 3c 2a 2a |Hn..N...|-@../<**|
|00000890| 2a 2a 20 6e fe f4 2f 08 | 20 50 20 50 22 68 00 18 |** n../.| P P"h..|
|000008a0| 4e 91 28 00 4f ef 00 2c | 0c ae 6e 65 78 74 fe e0 |N.(.O..,|..next..|
|000008b0| 67 0a 0c ae 61 66 74 65 | fe e0 66 08 7a 01 de 85 |g...afte|..f.z...|
|000008c0| 60 00 00 b4 0c ae 70 72 | 65 76 fe e0 67 0a 0c ae |`.....pr|ev..g...|
|000008d0| 62 65 66 6f fe e0 66 08 | 7a ff de 85 60 00 00 98 |befo..f.|z...`...|
|000008e0| 0c ae 62 67 6e 67 fe e0 | 66 08 7a 01 7e 01 60 00 |..bgng..|f.z.~.`.|
|000008f0| 00 86 0c ae 65 6e 64 20 | fe e0 66 06 7a ff 2e 04 |....end |..f.z...|
|00000900| 00 00 00 48 00 09 43 6f | 75 72 69 65 72 00 6c 75 |...H..Co|urier.lu|
|00000910| 03 df ca 60 54 79 70 65 | 73 2e 68 3e 0d 23 69 6e |...`Type|s.h>.#in|
|00000920| 63 6c 75 64 65 20 00 05 | 00 04 00 2d 00 12 01 2f |clude ..|...-.../|
|00000930| 01 84 00 2d 00 12 01 2f | 01 84 b0 5f 53 27 00 00 |...-.../|..._S'..|
|00000940| 00 aa 00 00 02 c3 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00000950| 00 2d 00 12 01 2f 01 84 | 00 2d 00 12 01 2f 01 84 |.-.../..|.-.../..|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 03 d6 |.....n..|.n...>..|
|00000980| 71 38 26 32 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |q8&2....|.>..MPSR|
|00000990| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 03 f0 ff ff 00 00 00 4c | 03 d7 c9 68 00 00 00 00 |.......L|...h....|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+