Operations on Signed Numbers

Abstract

Signed integers are normally represented using 2’s complement representation. Addition and subtraction of signed numbers is done similar to that of unsigned numbers. However carry (or borrow) is simply ignored. Unlike unsigned number carry (or borrow) does not mean overflow or error. Doubling of a signed number can be done by shift left. However, halving of a signed number cannot be done by shift right. Hence special arithmetic instruction SAR (Shift arithmetic right) is needed. We have defined an alternative representation for signed numbers. Here a positive number is represented by appended a zero (0) at right. Here a negative number is represented by inverting all bits in corresponding positive number. Two signed numbers are added by adding corresponding binary representation. After that carry is added to the result. Similarly two signed numbers are subtracted by subtracting corresponding binary representation. After that borrow is subtracted. Doubling and halving is done by ROL (Rotate left) and ROR (Rotate right) respectively.

Authors and Affiliations

Naika Sateesh Kumar , Muduganti Rathan Reddy , Y. Srinivas , J. Vijayasekhar , V K Narla

Keywords

Related Articles

A NOVEL APPROACH TO FIND THE ALTERNATIVE PATH FOR ROUTE MAINTENANCE IN AODV

Mobile Ad-hoc Network (MANET) is a Network, which permits the mobile nodes to commune in lack of a permanent Infrastructure. Nodes in MANET communicate via wireless multi hop links. MANET provides a good platform for any...

A Symmetric FHE Scheme Based on Linear Algebra

FHE is considered to be Holy Grail of cloud computing. Many applications of cloud computing inherently need symmetric keys while very few FHE schemes have been proposed with symmetric keys. Even with the schemes based on...

Personalized Collaborative News Recommendation

With the evolution of World Wide Web many conveniences came to our way, but along with these facilities came some challenges like unlimited information resources and a large corpus of online data. Recommendation Systems...

Artificial Intelligence Techniques for DWT Based Image Watermarking

In this paper DWT and SVM based image digital watermarking has been presented. In proposed work firstly Fuzzy logic will be used for training based on membership functions and DWT. The DWT will be used for decomposition...

Evaluation of Classifiers to Enhance Model Selection

The various tasks like classification, clustering and association rule deriving are performed in the data-mining for the pattern extraction. The performance evaluation measures make each task distinct and meaningful. The...

Download PDF file
  • EP ID EP93105
  • DOI -
  • Views 115
  • Downloads 0

How To Cite

Naika Sateesh Kumar, Muduganti Rathan Reddy, Y. Srinivas, J. Vijayasekhar, V K Narla (2013). Operations on Signed Numbers. International Journal of Computer Science & Engineering Technology, 4(1), 44-48. https://europub.co.uk/articles/-A-93105