and_bool(int x,int y)1*1f5207b7SJohn Levonstatic int and_bool(int x, int y) 2*1f5207b7SJohn Levon { 3*1f5207b7SJohn Levon return x && y; 4*1f5207b7SJohn Levon } 5*1f5207b7SJohn Levon uand_bool(unsigned int x,unsigned int y)6*1f5207b7SJohn Levonstatic unsigned int uand_bool(unsigned int x, unsigned int y) 7*1f5207b7SJohn Levon { 8*1f5207b7SJohn Levon return x && y; 9*1f5207b7SJohn Levon } 10*1f5207b7SJohn Levon or_bool(int x,int y)11*1f5207b7SJohn Levonstatic int or_bool(int x, int y) 12*1f5207b7SJohn Levon { 13*1f5207b7SJohn Levon return x || y; 14*1f5207b7SJohn Levon } 15*1f5207b7SJohn Levon uor_bool(unsigned int x,unsigned int y)16*1f5207b7SJohn Levonstatic unsigned int uor_bool(unsigned int x, unsigned int y) 17*1f5207b7SJohn Levon { 18*1f5207b7SJohn Levon return x || y; 19*1f5207b7SJohn Levon } 20*1f5207b7SJohn Levon 21*1f5207b7SJohn Levon /* 22*1f5207b7SJohn Levon * check-name: Logical operator code generation 23*1f5207b7SJohn Levon * check-command: sparsec -c $file -o tmp.o 24*1f5207b7SJohn Levon */ 25