summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/bitcmp
diff options
context:
space:
mode:
authorimushir2016-01-22 16:12:04 +0530
committerimushir2016-01-22 16:12:04 +0530
commit8ee41aca4183a0239b9cb220de3f159b1f0910fb (patch)
treee3d9305fdcbb42b12c0f2c4fd19a9b38cad60225 /src/c/elementaryFunctions/bitcmp
parent82e50ba319fc2c531bde168df4b23fa28b990d56 (diff)
downloadScilab2C_fossee_old-8ee41aca4183a0239b9cb220de3f159b1f0910fb.tar.gz
Scilab2C_fossee_old-8ee41aca4183a0239b9cb220de3f159b1f0910fb.tar.bz2
Scilab2C_fossee_old-8ee41aca4183a0239b9cb220de3f159b1f0910fb.zip
removed unwanted temp variable
Diffstat (limited to 'src/c/elementaryFunctions/bitcmp')
-rw-r--r--src/c/elementaryFunctions/bitcmp/u16bitcmps.c2
-rw-r--r--src/c/elementaryFunctions/bitcmp/u8bitcmps.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/c/elementaryFunctions/bitcmp/u16bitcmps.c b/src/c/elementaryFunctions/bitcmp/u16bitcmps.c
index 1981690..fc43b37 100644
--- a/src/c/elementaryFunctions/bitcmp/u16bitcmps.c
+++ b/src/c/elementaryFunctions/bitcmp/u16bitcmps.c
@@ -3,7 +3,7 @@
#include "bitcmp.h"
uint16 u16bitcmps(uint16 x,uint16 y)
{
- unsigned char temp = x;
+
return (~x);
}
diff --git a/src/c/elementaryFunctions/bitcmp/u8bitcmps.c b/src/c/elementaryFunctions/bitcmp/u8bitcmps.c
index 2a030d9..c3f18b1 100644
--- a/src/c/elementaryFunctions/bitcmp/u8bitcmps.c
+++ b/src/c/elementaryFunctions/bitcmp/u8bitcmps.c
@@ -3,8 +3,7 @@
#include "bitcmp.h"
uint8 u8bitcmps(uint8 x,uint8 y)
{
- unsigned char temp = x;
- return (~x);
+ return (~x);
}