diff options
author | nutricato | 2008-06-04 08:58:15 +0000 |
---|---|---|
committer | nutricato | 2008-06-04 08:58:15 +0000 |
commit | 9d4cbed90bf28487c52de84e7040ee78e60b4b5d (patch) | |
tree | b2aefdb73ca2ae200c92e1847030db5a7f650adb /src/Scilab2C/GeneralFunctions/SizeInByte.sci | |
parent | 56805b2de8725a4169ba40d1acbda997ea2528aa (diff) | |
download | scilab2c-9d4cbed90bf28487c52de84e7040ee78e60b4b5d.tar.gz scilab2c-9d4cbed90bf28487c52de84e7040ee78e60b4b5d.tar.bz2 scilab2c-9d4cbed90bf28487c52de84e7040ee78e60b4b5d.zip |
Diffstat (limited to 'src/Scilab2C/GeneralFunctions/SizeInByte.sci')
-rw-r--r-- | src/Scilab2C/GeneralFunctions/SizeInByte.sci | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/Scilab2C/GeneralFunctions/SizeInByte.sci b/src/Scilab2C/GeneralFunctions/SizeInByte.sci deleted file mode 100644 index 5fcf4e08..00000000 --- a/src/Scilab2C/GeneralFunctions/SizeInByte.sci +++ /dev/null @@ -1,31 +0,0 @@ -function SizeIn = SizeInByte(InDataType);
-// function SizeIn = SizeInByte(InDataType);
-// -----------------------------------------------------------------
-// Returns the size in bytes of the input data type.
-//
-// Input data:
-// InDataType: input data type. It can be:
-// 'float'
-// 'double'
-// 'floatComplex*'
-// 'doubleComplex*'
-//
-// Output data:
-// SizeIn: size in bytes of the input data type.
-//
-// Status:
-// 12-May-2007 -- Nutricato Raffaele: Author.
-// -----------------------------------------------------------------
-
-if (InDataType == 'float')
- SizeIn = 4;
-elseif (InDataType == 'double')
- SizeIn = 8;
-elseif (InDataType == 'floatComplex*')
- SizeIn = 8;
-elseif (InDataType == 'doubleComplex*')
- SizeIn = 16;
-else
- error('Unknown data type: '+InDataType);
-end
-endfunction
|