summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/elementaryFunctions')
-rw-r--r--src/c/elementaryFunctions/bitget/u16bitgets.c~24
-rw-r--r--src/c/elementaryFunctions/bitget/u8bitgets.c~24
-rw-r--r--src/c/elementaryFunctions/bitor/dbitanda.c~14
-rw-r--r--src/c/elementaryFunctions/bitor/dbitands.c~9
-rw-r--r--src/c/elementaryFunctions/bitor/u16bitanda.c~14
-rw-r--r--src/c/elementaryFunctions/bitor/u16bitands.c~9
-rw-r--r--src/c/elementaryFunctions/bitor/u16bitora.c~14
-rw-r--r--src/c/elementaryFunctions/bitor/u16bitors.c~9
-rw-r--r--src/c/elementaryFunctions/bitor/u8bitanda.c~14
-rw-r--r--src/c/elementaryFunctions/bitor/u8bitands.c~9
-rw-r--r--src/c/elementaryFunctions/bitor/u8bitora.c~14
-rw-r--r--src/c/elementaryFunctions/bitor/u8bitors.c~9
-rw-r--r--src/c/elementaryFunctions/bitset/u16bitsets.c~20
-rw-r--r--src/c/elementaryFunctions/bitset/u8bitsets.c~20
-rw-r--r--src/c/elementaryFunctions/bitxor/dbitanda.c~14
-rw-r--r--src/c/elementaryFunctions/bitxor/dbitands.c~9
-rw-r--r--src/c/elementaryFunctions/bitxor/u16bitanda.c~14
-rw-r--r--src/c/elementaryFunctions/bitxor/u16bitands.c~9
-rw-r--r--src/c/elementaryFunctions/bitxor/u16bitora.c~14
-rw-r--r--src/c/elementaryFunctions/bitxor/u16bitors.c~9
-rw-r--r--src/c/elementaryFunctions/bitxor/u16bitxora.c~14
-rw-r--r--src/c/elementaryFunctions/bitxor/u16bitxors.c~9
-rw-r--r--src/c/elementaryFunctions/bitxor/u8bitanda.c~14
-rw-r--r--src/c/elementaryFunctions/bitxor/u8bitands.c~9
-rw-r--r--src/c/elementaryFunctions/bitxor/u8bitora.c~14
-rw-r--r--src/c/elementaryFunctions/bitxor/u8bitors.c~9
-rw-r--r--src/c/elementaryFunctions/bitxor/u8bitxora.c~14
-rw-r--r--src/c/elementaryFunctions/bitxor/u8bitxors.c~9
28 files changed, 0 insertions, 364 deletions
diff --git a/src/c/elementaryFunctions/bitget/u16bitgets.c~ b/src/c/elementaryFunctions/bitget/u16bitgets.c~
deleted file mode 100644
index 20593bf..0000000
--- a/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/src/c/elementaryFunctions/bitget/u8bitgets.c~ b/src/c/elementaryFunctions/bitget/u8bitgets.c~
deleted file mode 100644
index 130bff8..0000000
--- a/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/src/c/elementaryFunctions/bitor/dbitanda.c~ b/src/c/elementaryFunctions/bitor/dbitanda.c~
deleted file mode 100644
index d411e6e..0000000
--- a/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/src/c/elementaryFunctions/bitor/dbitands.c~ b/src/c/elementaryFunctions/bitor/dbitands.c~
deleted file mode 100644
index a66e3c1..0000000
--- a/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/src/c/elementaryFunctions/bitor/u16bitanda.c~ b/src/c/elementaryFunctions/bitor/u16bitanda.c~
deleted file mode 100644
index 743161e..0000000
--- a/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/src/c/elementaryFunctions/bitor/u16bitands.c~ b/src/c/elementaryFunctions/bitor/u16bitands.c~
deleted file mode 100644
index 7ba73c1..0000000
--- a/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/src/c/elementaryFunctions/bitor/u16bitora.c~ b/src/c/elementaryFunctions/bitor/u16bitora.c~
deleted file mode 100644
index 84722e1..0000000
--- a/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/src/c/elementaryFunctions/bitor/u16bitors.c~ b/src/c/elementaryFunctions/bitor/u16bitors.c~
deleted file mode 100644
index e48e300..0000000
--- a/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/src/c/elementaryFunctions/bitor/u8bitanda.c~ b/src/c/elementaryFunctions/bitor/u8bitanda.c~
deleted file mode 100644
index e1260a7..0000000
--- a/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/src/c/elementaryFunctions/bitor/u8bitands.c~ b/src/c/elementaryFunctions/bitor/u8bitands.c~
deleted file mode 100644
index eda3ccc..0000000
--- a/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/src/c/elementaryFunctions/bitor/u8bitora.c~ b/src/c/elementaryFunctions/bitor/u8bitora.c~
deleted file mode 100644
index edda9bb..0000000
--- a/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/src/c/elementaryFunctions/bitor/u8bitors.c~ b/src/c/elementaryFunctions/bitor/u8bitors.c~
deleted file mode 100644
index 56d3540..0000000
--- a/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/src/c/elementaryFunctions/bitset/u16bitsets.c~ b/src/c/elementaryFunctions/bitset/u16bitsets.c~
deleted file mode 100644
index 953e46c..0000000
--- a/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/src/c/elementaryFunctions/bitset/u8bitsets.c~ b/src/c/elementaryFunctions/bitset/u8bitsets.c~
deleted file mode 100644
index 5f44dcd..0000000
--- a/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/src/c/elementaryFunctions/bitxor/dbitanda.c~ b/src/c/elementaryFunctions/bitxor/dbitanda.c~
deleted file mode 100644
index d411e6e..0000000
--- a/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/src/c/elementaryFunctions/bitxor/dbitands.c~ b/src/c/elementaryFunctions/bitxor/dbitands.c~
deleted file mode 100644
index a66e3c1..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u16bitanda.c~ b/src/c/elementaryFunctions/bitxor/u16bitanda.c~
deleted file mode 100644
index 743161e..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u16bitands.c~ b/src/c/elementaryFunctions/bitxor/u16bitands.c~
deleted file mode 100644
index 7ba73c1..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u16bitora.c~ b/src/c/elementaryFunctions/bitxor/u16bitora.c~
deleted file mode 100644
index 84722e1..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u16bitors.c~ b/src/c/elementaryFunctions/bitxor/u16bitors.c~
deleted file mode 100644
index e48e300..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u16bitxora.c~ b/src/c/elementaryFunctions/bitxor/u16bitxora.c~
deleted file mode 100644
index 6f50f06..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u16bitxors.c~ b/src/c/elementaryFunctions/bitxor/u16bitxors.c~
deleted file mode 100644
index 03ca8f8..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u8bitanda.c~ b/src/c/elementaryFunctions/bitxor/u8bitanda.c~
deleted file mode 100644
index e1260a7..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u8bitands.c~ b/src/c/elementaryFunctions/bitxor/u8bitands.c~
deleted file mode 100644
index eda3ccc..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u8bitora.c~ b/src/c/elementaryFunctions/bitxor/u8bitora.c~
deleted file mode 100644
index edda9bb..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u8bitors.c~ b/src/c/elementaryFunctions/bitxor/u8bitors.c~
deleted file mode 100644
index 56d3540..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u8bitxora.c~ b/src/c/elementaryFunctions/bitxor/u8bitxora.c~
deleted file mode 100644
index ad7cc24..0000000
--- a/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/src/c/elementaryFunctions/bitxor/u8bitxors.c~ b/src/c/elementaryFunctions/bitxor/u8bitxors.c~
deleted file mode 100644
index 9a346ee..0000000
--- a/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);
-
-}