summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/elementaryFunctions')
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitget/u16bitgets.c~24
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitget/u8bitgets.c~24
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/dbitanda.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/dbitands.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u16bitanda.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u16bitands.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u16bitora.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u16bitors.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u8bitanda.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u8bitands.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u8bitora.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitor/u8bitors.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitset/u16bitsets.c~20
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitset/u8bitsets.c~20
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/dbitanda.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/dbitands.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u16bitanda.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u16bitands.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u16bitora.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u16bitors.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u16bitxora.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u16bitxors.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u8bitanda.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u8bitands.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u8bitora.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u8bitors.c~9
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u8bitxora.c~14
-rw-r--r--2.3-1/src/c/elementaryFunctions/bitxor/u8bitxors.c~9
28 files changed, 0 insertions, 364 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/bitget/u16bitgets.c~ b/2.3-1/src/c/elementaryFunctions/bitget/u16bitgets.c~
deleted file mode 100644
index 20593bff..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitget/u16bitgets.c~
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitget.h"
-#include<stdio.h>
-
-uint16 u16bitgets(uint16 value,int position)
-{
-
- value = value >> (position -1);
- value = value & 1;
- return value;
-
- /*unsigned char mask = 1<<(position-1);
- uint16 bit = value&mask;
- if(bit > 0)
- {
- return 1;
- }
- else
- {
- return 0;
- }*/
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitget/u8bitgets.c~ b/2.3-1/src/c/elementaryFunctions/bitget/u8bitgets.c~
deleted file mode 100644
index 130bff86..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitget/u8bitgets.c~
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitget.h"
-#include<stdio.h>
-
-uint8 u8bitgets(uint8 value,int position)
-{
-
- value = value >> (position -1);
- value = value & 1;
- return value;
-
- /*unsigned char mask = 1<<(position-1);
- uint8 bit = value&mask;
- if(bit > 0)
- {
- return 1;
- }
- else
- {
- return 0;
- }*/
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/dbitanda.c~ b/2.3-1/src/c/elementaryFunctions/bitor/dbitanda.c~
deleted file mode 100644
index d411e6e4..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/dbitanda.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitand.h"
-
-void dbitanda(double* x,double* y,int size,double* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = dbitands(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/dbitands.c~ b/2.3-1/src/c/elementaryFunctions/bitor/dbitands.c~
deleted file mode 100644
index a66e3c13..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/dbitands.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitand.h"
-
-double dbitands(double x,double y)
-{
- return ((int)x & (int)y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u16bitanda.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u16bitanda.c~
deleted file mode 100644
index 743161ea..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u16bitanda.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitand.h"
-
-void u16bitanda(uint16* x,uint16* y,int size,uint16* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u16bitands(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u16bitands.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u16bitands.c~
deleted file mode 100644
index 7ba73c15..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u16bitands.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitand.h"
-
-uint16 u16bitands(uint16 x,uint16 y)
-{
- return (x & y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u16bitora.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u16bitora.c~
deleted file mode 100644
index 84722e18..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u16bitora.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitor.h"
-
-void u16bitora(uint16* x,uint16* y,int size,uint16* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u16bitors(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u16bitors.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u16bitors.c~
deleted file mode 100644
index e48e3000..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u16bitors.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitor.h"
-
-uint16 u16bitors(uint16 x,uint16 y)
-{
- return (x | y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u8bitanda.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u8bitanda.c~
deleted file mode 100644
index e1260a71..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u8bitanda.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitand.h"
-
-void u8bitanda(uint8* x,uint8* y,int size,uint8* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u8bitands(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u8bitands.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u8bitands.c~
deleted file mode 100644
index eda3ccc6..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u8bitands.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitand.h"
-
-uint8 u8bitands(uint8 x,uint8 y)
-{
- return (x & y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u8bitora.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u8bitora.c~
deleted file mode 100644
index edda9bba..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u8bitora.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitor.h"
-
-void u8bitora(uint8* x,uint8* y,int size,uint8* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u8bitors(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitor/u8bitors.c~ b/2.3-1/src/c/elementaryFunctions/bitor/u8bitors.c~
deleted file mode 100644
index 56d3540d..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitor/u8bitors.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitor.h"
-
-uint8 u8bitors(uint8 x,uint8 y)
-{
- return (x | y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitset/u16bitsets.c~ b/2.3-1/src/c/elementaryFunctions/bitset/u16bitsets.c~
deleted file mode 100644
index 953e46c9..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitset/u16bitsets.c~
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitset.h"
-#include<stdio.h>
-
-uint16 u16bitsets(uint16 value,int position,int bit_value)
-{
- if(bit_value==1)
- {
- unsigned char mask1 = 1 << (position-1) ; // we could cast to unsigned char, just to be safe
- return (mask1 | value);
- }
- else
- {
- unsigned char mask2 = ~(1 << (position-1)); // we could cast to unsigned char, just to be safe
- return (mask2 & value);
-
- }
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitset/u8bitsets.c~ b/2.3-1/src/c/elementaryFunctions/bitset/u8bitsets.c~
deleted file mode 100644
index 5f44dcd8..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitset/u8bitsets.c~
+++ /dev/null
@@ -1,20 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitset.h"
-#include<stdio.h>
-
-uint8 u8bitsets(uint8 value,int position,int bit_value)
-{
- if(bit_value==1)
- {
- unsigned char mask1 = 1 << (position-1) ; // we could cast to unsigned char, just to be safe
- return (mask1 | value);
- }
- else
- {
- unsigned char mask2 = ~(1 << (position-1)); // we could cast to unsigned char, just to be safe
- return (mask2 & value);
-
- }
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/dbitanda.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/dbitanda.c~
deleted file mode 100644
index d411e6e4..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/dbitanda.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitand.h"
-
-void dbitanda(double* x,double* y,int size,double* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = dbitands(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/dbitands.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/dbitands.c~
deleted file mode 100644
index a66e3c13..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/dbitands.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitand.h"
-
-double dbitands(double x,double y)
-{
- return ((int)x & (int)y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitanda.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u16bitanda.c~
deleted file mode 100644
index 743161ea..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitanda.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitand.h"
-
-void u16bitanda(uint16* x,uint16* y,int size,uint16* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u16bitands(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitands.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u16bitands.c~
deleted file mode 100644
index 7ba73c15..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitands.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitand.h"
-
-uint16 u16bitands(uint16 x,uint16 y)
-{
- return (x & y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitora.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u16bitora.c~
deleted file mode 100644
index 84722e18..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitora.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitor.h"
-
-void u16bitora(uint16* x,uint16* y,int size,uint16* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u16bitors(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitors.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u16bitors.c~
deleted file mode 100644
index e48e3000..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitors.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitor.h"
-
-uint16 u16bitors(uint16 x,uint16 y)
-{
- return (x | y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitxora.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u16bitxora.c~
deleted file mode 100644
index 6f50f068..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitxora.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitxor.h"
-
-void u16bitxora(uint16* x,uint16* y,int size,uint16* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u16bitxors(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitxors.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u16bitxors.c~
deleted file mode 100644
index 03ca8f83..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u16bitxors.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitxor.h"
-
-uint16 u16bitxors(uint16 x,uint16 y)
-{
- return (x ^ y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitanda.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u8bitanda.c~
deleted file mode 100644
index e1260a71..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitanda.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitand.h"
-
-void u8bitanda(uint8* x,uint8* y,int size,uint8* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u8bitands(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitands.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u8bitands.c~
deleted file mode 100644
index eda3ccc6..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitands.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitand.h"
-
-uint8 u8bitands(uint8 x,uint8 y)
-{
- return (x & y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitora.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u8bitora.c~
deleted file mode 100644
index edda9bba..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitora.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitor.h"
-
-void u8bitora(uint8* x,uint8* y,int size,uint8* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u8bitors(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitors.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u8bitors.c~
deleted file mode 100644
index 56d3540d..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitors.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitor.h"
-
-uint8 u8bitors(uint8 x,uint8 y)
-{
- return (x | y);
-
-}
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitxora.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u8bitxora.c~
deleted file mode 100644
index ad7cc24e..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitxora.c~
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-#include "bitxor.h"
-
-void u8bitxora(uint8* x,uint8* y,int size,uint8* out)
-{
- int i = 0;
- for(i=0;i<size;i++)
- {
- out[i] = u8bitxors(x[i],y[i]);
- }
-
-
-}
-
diff --git a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitxors.c~ b/2.3-1/src/c/elementaryFunctions/bitxor/u8bitxors.c~
deleted file mode 100644
index 9a346eee..00000000
--- a/2.3-1/src/c/elementaryFunctions/bitxor/u8bitxors.c~
+++ /dev/null
@@ -1,9 +0,0 @@
-/* Scilab2C FOSSEE IITB */
-
-#include "bitxor.h"
-
-uint8 u8bitxors(uint8 x,uint8 y)
-{
- return (x ^ y);
-
-}