S
sandy_pt_in
How to mulitply two integer numbers using bitwise operators in C
language.Please reply as early as possible
language.Please reply as early as possible
How to mulitply two integer numbers using bitwise operators in C
language.Please reply as early as possible
How to mulitply two integer numbers using bitwise operators in C
language.Please reply as early as possible
You do know how to sum them, right? Well check this out:
3*4 == 3+3+3+3
3*4 == 4+4+4
How to mulitply two integer numbers using bitwise operators in C
language.Please reply as early as possible
How to mulitply two integer numbers using bitwise operators in C
language.Please reply as early as possible
Thomas Matthews said:but adding is not a bitwise operator.
Slartibartfast said:...but it is easy to implement in terms of bitwise operators, as long as you remember the truth table for the full adder.
Thomas Matthews said:Can the addition operator be used?
I was taught about left-shift and add, but adding is not a
bitwise operator.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
osmium said:.... snip ...
A full adder has three inputs: addend, augend and carry in and
two outputs: sum and carry out. Carry in is 0 for the rightmost
bit. Make a truth table and note that the exclusive or is very
useful.
Condition was to use only bitwise operators. Eventhough can you tell
me that method you know, using add operation.I will scratch my head to
get somthing out of it.
Condition was to use only bitwise operators. Eventhough can you tell
me that method you know, using add operation.I will scratch my head to
get somthing out of it.
Micah Cowan said:...but the OP reeks of homework...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.