Revision: 50697
http://brlcad.svn.sourceforge.net/brlcad/?rev=50697&view=rev
Author: tbrowder2
Date: 2012-05-26 11:20:20 +0000 (Sat, 26 May 2012)
Log Message:
-----------
ws, style
Modified Paths:
--------------
brlcad/trunk/src/libbu/test_bitv.c
Modified: brlcad/trunk/src/libbu/test_bitv.c
===================================================================
--- brlcad/trunk/src/libbu/test_bitv.c 2012-05-26 11:11:08 UTC (rev 50696)
+++ brlcad/trunk/src/libbu/test_bitv.c 2012-05-26 11:20:20 UTC (rev 50697)
@@ -35,7 +35,7 @@
int i ;
unsigned int product = 1;
- for(i = 0; i < exponent; i++) {
+ for (i = 0; i < exponent; i++) {
product = product*base;
}
@@ -51,12 +51,12 @@
res_bitv = bu_hex_to_bitv(inp);
- if(errno==1 && res_bitv==NULL) {
+ if (errno == 1 && res_bitv == NULL) {
printf("\nbu_hex_to_bitv PASSED Input:%s Output:%s", inp, res);
return 0;
}
- if(!bu_strcmp((char*)res_bitv->bits, res)) {
+ if (!bu_strcmp((char*)res_bitv->bits, res)) {
printf("\nbu_hex_to_bitv PASSED Input:%s Output:%s", inp,
(char*)res_bitv->bits);
pass = 1 ;
} else {
@@ -83,7 +83,7 @@
bu_bitv_to_hex(a, res_bitv);
- if(!bu_strcmp(a->vls_str, res)) {
+ if (!bu_strcmp(a->vls_str, res)) {
printf("\nbu_bitv_to_hex PASSED Input:%5s Output:%9s", inp, res);
pass = 1 ;
} else {
@@ -109,7 +109,7 @@
res_bitv = bu_hex_to_bitv(inp);
bu_bitv_vls(a, res_bitv);
- if(!bu_strcmp(a->vls_str, exp)) {
+ if (!bu_strcmp(a->vls_str, exp)) {
printf("\nbu_bitv_vls test PASSED Input:%s Output:%s", inp, (char
*)a->vls_str);
pass = 1;
} else {
@@ -136,13 +136,13 @@
res_bitv1 = bu_hex_to_bitv(inp1);
res_bitv = bu_hex_to_bitv(inp2);
- result = bu_hex_to_bitv(exp);
+ result = bu_hex_to_bitv(exp);
bu_bitv_or(res_bitv1, res_bitv);
bu_bitv_vls(a, res_bitv1);
bu_bitv_vls(b, result);
- if(!bu_strcmp(a->vls_str, b->vls_str)) {
+ if (!bu_strcmp(a->vls_str, b->vls_str)) {
printf("\nbu_bitv_or test PASSED Input1:%s Input2:%s Output:%s", inp1,
inp2, exp);
pass = 1;
} else {
@@ -170,13 +170,13 @@
res_bitv1 = bu_hex_to_bitv(inp1);
res_bitv = bu_hex_to_bitv(inp2);
- result = bu_hex_to_bitv(exp);
+ result = bu_hex_to_bitv(exp);
bu_bitv_and(res_bitv1,res_bitv);
bu_bitv_vls(a,res_bitv1);
bu_bitv_vls(b,result);
- if(!bu_strcmp(a->vls_str , b->vls_str)) {
+ if (!bu_strcmp(a->vls_str , b->vls_str)) {
printf("\nbu_bitv_and test PASSED Input1:%s Input2:%s Output:%s", inp1,
inp2, exp);
pass = 1;
} else {
@@ -198,14 +198,14 @@
int res , pass = 1;
/* unused variables generate warnings, and sometimes warnings are treated
as errors*/
- if(ac){};
- if(av){};
+ if (ac) {};
+ if (av) {};
/*test bu_bitv_shift*/
res = bu_bitv_shift();
printf("\nTesting bu_bitv_shift...");
- if( power(2, res)<=(sizeof(bitv_t) * 8) && power(2, res +
1)>(sizeof(bitv_t) * 8) ) {
+ if (power(2, res) <= (sizeof(bitv_t) * 8) && power(2, res + 1) >
(sizeof(bitv_t) * 8)) {
printf("\nPASSED: bu_bitv_shift working");
} else {
printf("\nFAILED: bu_bitv_shift incorrect");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits