AminetAminet
Search:
78315 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/basic/SANE.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:80bit SANE & numeric functions for Blitz
Author:lombi at iprimus.com.au (Lorence Lombardo)
Uploader:lombi iprimus com au (Lorence Lombardo)
Type:dev/basic
Version:2.1a
Architecture:m68k-amigaos
Date:2008-09-29
Download:http://aminet.net/dev/basic/SANE.lha - View contents
Readme:http://aminet.net/dev/basic/SANE.readme
Downloads:1085

Here are some functions used for dealing with Apple Macintosh's SANE
Normalized numeric format. Some of the functions may have other uses also.

So far the only place I have encountered this format is in the stored
frequency of the AIFF/AIFC header specification.

See "www.mactech.com/articles/mactech/Vol.06/06.01/SANENormalized" for
related interest.

aif_info is a demonstration program which obtains some basic specification
information of AIFF/AIFC files.

Usage:- aif_info <AIFF/AIFC_file> 


"fsize.exe" is a program which shows you how to obtain file sizes of up to
4GB with the "CVF{}" numeric function.

Usage:- fsize.exe <file>

Here are the results of "fsize.exe" using different float types for the same
2.58GB file:-

Float 32 no FPU:-  2775528000   bytes
Float 32 with FPU:- 2775528448   bytes
Float 64 with FPU:- 2775528454   bytes, same result as windows.

As you can see the Float 32 results are OK if you want to round off your
result to GB, but if you want the precise bytes then you really need an FPU
using Float64.


"CVFS{}" is the signed version of the "CVF{}" function.


"ffp2ieee.ab2" shows you how to convert Amiga FFP to IEEE float.

"ieee2ffp.ab2" shows you how to convert IEEE float to Amiga FFP, without
an FPU.


"ValF{}" is an alternative to the "Val" command which may also be useful
for people with a more classic Blitz setup.


"octal.ab2" is a set of functions for dealing with the octal number system. 


Tips for people without FPU and a more classic Blitz setup:-

Since I have "Lotan Libs" installed I must use "PeekS" instead of "Peeks$".
So you need to replace "PeekS" with "Peeks$". You will also need to replace
"Vallong" with "Val".

I have aleardy done this for you in the "classic" directory you will find
a "Peeks$" version of "SANE.ab2",  "ieee2ffp.ab2" and a "Val" version of
"ValF.ab2".

"aif_info", "ieee2ffp", "ieee2ffp_OS", "fsize.exe" and "ValF2.exe" were
tested with a "1.3 rom" and no FPU on WinUAE.


Feeling bored ?  :)
Why not check out this URL ?

http://home.iprimus.com.au/lombi/1/homepage.htm



Contents of dev/basic/SANE.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 9134    9280  98.4% -lh5- 17c4 Sep  2 18:57 SANE/aif_info
[generic]                15718   15864  99.1% -lh5- 350e Aug 30 14:08 SANE/aif_info_fpu
[generic]                  615    1164  52.8% -lh5- d1e7 Aug 13 19:45 SANE/classic/fsz2.ab2
[generic]                  187    1254  14.9% -lh5- c3a8 Aug 13 19:45 SANE/classic/fsz2.ab2.xtra
[generic]                 1590    4956  32.1% -lh5- f0b9 Sep  2 19:57 SANE/classic/ieee2ffp.ab2
[generic]                  182    1254  14.5% -lh5- fe2f Sep  2 19:57 SANE/classic/ieee2ffp.ab2.xtra
[generic]                 1163    2354  49.4% -lh5- 97de Sep  2 22:44 SANE/classic/SANE.ab2
[generic]                  184    1254  14.7% -lh5- 97d8 Sep  2 18:56 SANE/classic/SANE.ab2.xtra
[generic]                 1016    2577  39.4% -lh5- 334f Sep  2 22:36 SANE/classic/ValF.ab2
[generic]                  191    1254  15.2% -lh5- 350e Sep  2 21:42 SANE/classic/ValF.ab2.xtra
[generic]                 7267    7408  98.1% -lh5- 4508 Sep  2 21:43 SANE/classic/ValF2.exe
[generic]                 8002    8144  98.3% -lh5- 5800 Aug 18 11:36 SANE/ffp2ieee
[generic]                  994    2683  37.0% -lh5- 1e2c Aug 18 10:58 SANE/ffp2ieee.ab2
[generic]                  206    1286  16.0% -lh5- 879b Aug 18 10:58 SANE/ffp2ieee.ab2.xtra
[generic]                 5599    5708  98.1% -lh5- 5aef Sep 22 14:51 SANE/ffp2ieee_OS
[generic]                  523    1146  45.6% -lh5- eb01 Sep 22 12:51 SANE/ffp2ieee_OS.ab2
[generic]                  202    1286  15.7% -lh5- 14fb Sep 22 12:51 SANE/ffp2ieee_OS.ab2.xtra
[generic]                 6413    6524  98.3% -lh5- 59e5 Aug 13 19:49 SANE/fsize.exe
[generic]                  699    1309  53.4% -lh5- ebd5 Aug  5 18:34 SANE/fsz.ab2
[generic]                  198    1286  15.4% -lh5- 83e3 Aug  5 18:34 SANE/fsz.ab2.xtra
[generic]                 7513    7640  98.3% -lh5- 0be1 Sep  2 19:58 SANE/ieee2ffp
[generic]                 1584    4823  32.8% -lh5- 5cf2 Aug 16 22:24 SANE/ieee2ffp.ab2
[generic]                  197    1286  15.3% -lh5- 9a74 Aug 16 22:24 SANE/ieee2ffp.ab2.xtra
[generic]                 4914    5008  98.1% -lh5- f94a Sep 24 03:01 SANE/ieee2ffp_OS
[generic]                  908    2717  33.4% -lh5- 4792 Sep 24 12:54 SANE/ieee2ffp_OS.ab2
[generic]                  204    1286  15.9% -lh5- 3d43 Sep 24 12:54 SANE/ieee2ffp_OS.ab2.xtra
[generic]                  420     850  49.4% -lh5- 859a Aug 15 16:14 SANE/octal.ab2
[generic]                  204    1286  15.9% -lh5- f68f Aug 15 16:14 SANE/octal.ab2.xtra
[generic]                 7604    7732  98.3% -lh5- f478 Aug 15 16:15 SANE/octal.exe
[generic]                 4334    4604  94.1% -lh5- 962a Aug  6 13:17 SANE/pics/Double_IEEE_Float.png
[generic]                 1360    1360 100.0% -lh0- 22e9 Aug  9 10:29 SANE/pics/Extended_IEEE_float.gif
[generic]                 4166    4166 100.0% -lh0- 3fd7 Aug  6 00:12 SANE/pics/Extended_vs_Double_float.gif
[generic]                 7855    8002  98.2% -lh5- 6726 Aug  6 13:16 SANE/pics/Single_IEEE_Float.png
[generic]                 1263    2587  48.8% -lh5- f9d5 Aug 16 22:29 SANE/SANE.ab2
[generic]                  203    1286  15.8% -lh5- e47c Aug 16 22:29 SANE/SANE.ab2.xtra
[generic]                 1114    2279  48.9% -lh5- aa5c Sep 24 13:12 SANE/SANE.readme
[generic]                 1211    2572  47.1% -lh5- e935 Aug 30 14:04 SANE/SANE_FPU.ab2
[generic]                  206    1286  16.0% -lh5- d894 Aug 16 22:27 SANE/SANE_FPU.ab2.xtra
[generic]                  881    2256  39.1% -lh5- a9d4 Nov  6  2007 SANE/test/ffp2ieee_dev.ab2
[generic]                  201    1286  15.6% -lh5- d889 Nov  6  2007 SANE/test/ffp2ieee_dev.ab2.xtra
[generic]                  555    1394  39.8% -lh5- e2f7 Nov  7  2007 SANE/test/float.txt
[generic]                 1122    2491  45.0% -lh5- 978b Nov  8  2007 SANE/test/ieee2ffp_dev.ab2
[generic]                  201    1286  15.6% -lh5- 822b Nov  8  2007 SANE/test/ieee2ffp_dev.ab2.xtra
[generic]                 1083    2721  39.8% -lh5- 1923 Aug 30 14:06 SANE/ValF.ab2
[generic]                  208    1286  16.2% -lh5- 60ae Aug 14 22:03 SANE/ValF.ab2.xtra
[generic]                 8396    8552  98.2% -lh5- 4462 Aug 30 14:08 SANE/ValF.exe
[generic]                  733    1732  42.3% -lh5- 4e0a Aug 30 14:06 SANE/ValF_lite.ab2
[generic]                  210    1286  16.3% -lh5- cd11 Aug 18 11:33 SANE/ValF_lite.ab2.xtra
[generic]                 7863    8012  98.1% -lh5- 903a Aug 30 14:08 SANE/ValF_lite.exe
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        49 files  126796  171063  74.1%            Sep 29 18:41

Aminet © 1992-2008 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>