AminetAminet
Search:
78952 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:14-3-2010
Architecture:m68k-amigaos
Date:2010-03-14
Download:http://aminet.net/dev/basic/SANE.lha - View contents
Readme:http://aminet.net/dev/basic/SANE.readme
Downloads:1472
Date format:-  D-M-Y

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.

"fsz_new.exe" now uses a different method for obtaining file sizes.
"fsz_new.exe" is able to obtain precise file sizes of up to 4GB without the
use of floats or FPU.


"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. 

"bint.ab2" is a set of functions for dealing with big integer and big
floating point numeric strings.


"ValL.ab2" is a set of alternative equivalent functions to AB2/3's "Vallong"
command and a little bit more, which may also be useful for people with a
more classic Blitz setup. 


"unsign.ab2" is a set of functions for converting signed numbers to
unsigned numbers.


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", a "Val" version of
"ValF.ab2" and "bint.ab2".

"aif_info", "ieee2ffp", "ieee2ffp_OS", "fsize.exe", "fsz_new.exe",
"bint.exe", "ValF2.exe" and "vll.exe" were tested with a "1.3 rom", no FPU
and lots of RAM 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  2008 SANE/aif_info
[generic]                15718   15864  99.1% -lh5- 350e Aug 30  2008 SANE/aif_info_fpu
[generic]                 5980   26876  22.3% -lh5- 93e0 Mar 14 11:54 SANE/bint.ab2
[generic]                  206    1290  16.0% -lh5- 2ca1 Mar 14 11:54 SANE/bint.ab2.xtra
[generic]                24767   25036  98.9% -lh5- dea3 Mar 14 12:03 SANE/bint.exe
[generic]                 5998   26890  22.3% -lh5- e6e9 Mar 14 11:15 SANE/classic/bint.ab2
[generic]                  200    1286  15.6% -lh5- c315 Mar 14 11:15 SANE/classic/bint.ab2.xtra
[generic]                  615    1164  52.8% -lh5- d1e7 Jan 31 13:27 SANE/classic/fsz2.ab2
[generic]                  148    1218  12.2% -lh5- 11de Jan 31 12:11 SANE/classic/fsz2.ab2.xtra
[generic]                  945    2110  44.8% -lh5- d452 Feb 10 13:39 SANE/classic/fsz3.ab2
[generic]                  147    1218  12.1% -lh5- 266c Jan 31 12:42 SANE/classic/fsz3.ab2.xtra
[generic]                 1585    4914  32.3% -lh5- 2f3a Jan 31 13:28 SANE/classic/ieee2ffp.ab2
[generic]                  167    1218  13.7% -lh5- 677f Jan 31 11:45 SANE/classic/ieee2ffp.ab2.xtra
[generic]                 1158    2324  49.8% -lh5- 1af0 Jan 31 13:28 SANE/classic/SANE.ab2
[generic]                  169    1218  13.9% -lh5- 36c2 Jan 31 11:42 SANE/classic/SANE.ab2.xtra
[generic]                 1015    2573  39.4% -lh5- 3135 Jan 31 13:28 SANE/classic/ValF.ab2
[generic]                  172    1218  14.1% -lh5- 3ebf Jan 31 11:25 SANE/classic/ValF.ab2.xtra
[generic]                 7267    7408  98.1% -lh5- 4508 Sep  2  2008 SANE/classic/ValF2.exe
[generic]                 8002    8144  98.3% -lh5- 5800 Aug 18  2008 SANE/ffp2ieee
[generic]                  994    2683  37.0% -lh5- 1e2c Aug 18  2008 SANE/ffp2ieee.ab2
[generic]                  206    1286  16.0% -lh5- 879b Aug 18  2008 SANE/ffp2ieee.ab2.xtra
[generic]                 5599    5708  98.1% -lh5- 5aef Sep 22  2008 SANE/ffp2ieee_OS
[generic]                  523    1146  45.6% -lh5- eb01 Sep 22  2008 SANE/ffp2ieee_OS.ab2
[generic]                  202    1286  15.7% -lh5- 14fb Sep 22  2008 SANE/ffp2ieee_OS.ab2.xtra
[generic]                 6413    6524  98.3% -lh5- 59e5 Aug 13  2008 SANE/fsize.exe
[generic]                  699    1309  53.4% -lh5- ebd5 Aug  5  2008 SANE/fsz.ab2
[generic]                  198    1286  15.4% -lh5- 83e3 Aug  5  2008 SANE/fsz.ab2.xtra
[generic]                  972    2122  45.8% -lh5- a16c Feb  9 21:18 SANE/fsz3.ab2
[generic]                  189    1286  14.7% -lh5- 766a Feb  9 21:18 SANE/fsz3.ab2.xtra
[generic]                17095   17256  99.1% -lh5- bd97 Feb 10 13:40 SANE/fsz_new.exe
[generic]                 7513    7640  98.3% -lh5- 0be1 Sep  2  2008 SANE/ieee2ffp
[generic]                 1584    4823  32.8% -lh5- 5cf2 Aug 16  2008 SANE/ieee2ffp.ab2
[generic]                  197    1286  15.3% -lh5- 9a74 Aug 16  2008 SANE/ieee2ffp.ab2.xtra
[generic]                 4914    5008  98.1% -lh5- f94a Sep 24  2008 SANE/ieee2ffp_OS
[generic]                  904    2717  33.3% -lh5- 9932 Jan 31 13:28 SANE/ieee2ffp_OS.ab2
[generic]                  169    1218  13.9% -lh5- 7c60 Jan 31 11:23 SANE/ieee2ffp_OS.ab2.xtra
[generic]                  420     850  49.4% -lh5- 859a Aug 15  2008 SANE/octal.ab2
[generic]                  204    1286  15.9% -lh5- f68f Aug 15  2008 SANE/octal.ab2.xtra
[generic]                 7604    7732  98.3% -lh5- f478 Aug 15  2008 SANE/octal.exe
[generic]                 4334    4604  94.1% -lh5- 962a Aug  6  2008 SANE/pics/Double_IEEE_Float.png
[generic]                 1360    1360 100.0% -lh0- 22e9 Aug  9  2008 SANE/pics/Extended_IEEE_float.gif
[generic]                 4166    4166 100.0% -lh0- 3fd7 Aug  6  2008 SANE/pics/Extended_vs_Double_float.gif
[generic]                 7855    8002  98.2% -lh5- 6726 Aug  6  2008 SANE/pics/Single_IEEE_Float.png
[generic]                 1263    2587  48.8% -lh5- f9d5 Aug 16  2008 SANE/SANE.ab2
[generic]                  203    1286  15.8% -lh5- e47c Aug 16  2008 SANE/SANE.ab2.xtra
[generic]                 1327    2904  45.7% -lh5- 794f Mar 14 12:35 SANE/SANE.readme
[generic]                 1211    2572  47.1% -lh5- e935 Aug 30  2008 SANE/SANE_FPU.ab2
[generic]                  206    1286  16.0% -lh5- d894 Aug 16  2008 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]                 1125    2728  41.2% -lh5- 7a53 Feb 15 10:50 SANE/unsign.ab2
[generic]                  211    1286  16.4% -lh5- 0010 Feb 12 00:03 SANE/unsign.ab2.xtra
[generic]                 9539    9680  98.5% -lh5- 0a99 Feb 12 00:04 SANE/unsign_fpu.exe
[generic]                 1083    2721  39.8% -lh5- 1923 Aug 30  2008 SANE/ValF.ab2
[generic]                  208    1286  16.2% -lh5- 60ae Aug 14  2008 SANE/ValF.ab2.xtra
[generic]                 8396    8552  98.2% -lh5- 4462 Aug 30  2008 SANE/ValF.exe
[generic]                  733    1732  42.3% -lh5- 4e0a Aug 30  2008 SANE/ValF_lite.ab2
[generic]                  210    1286  16.3% -lh5- cd11 Aug 18  2008 SANE/ValF_lite.ab2.xtra
[generic]                 7863    8012  98.1% -lh5- 903a Aug 30  2008 SANE/ValF_lite.exe
[generic]                 1397    4278  32.7% -lh5- 0f06 Mar  4 01:57 SANE/ValL.ab2
[generic]                  212    1286  16.5% -lh5- 0650 Mar  4 01:57 SANE/ValL.ab2.xtra
[generic]                 5540    5652  98.0% -lh5- ddf2 Mar  3 15:07 SANE/vll.exe
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        65 files  201394  301680  66.8%            Mar 14 18:17

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