Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 572747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:39:03+00:00 2026-05-13T13:39:03+00:00

In GMP library…. how does internal execution of operations on integers ll be done??

  • 0

In GMP library….

how does internal execution of operations on integers ll be done??
like 6=0110,4=0100..and
6+4= 0110+0100..
what happens in case of multiplications,division and other operations!??
how does it controls overflow bits and other things …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:39:04+00:00Added an answer on May 13, 2026 at 1:39 pm

    Most basic multiple-precision routines are written in assembly code and take advantage of specific CPU instructions.

    For addition, the basic instruction is “ADD-with-Carry”. This instruction will add the contents of two CPU registers and the carry bit, and then saves the result in a register and sets the carry bit if there was overflow. To add two multiple-precision numbers, the carry bit is cleared, then the first word (usually a C “unsigned int” or “unsigned long”) in each multiple- precision value is added, the result saved, and the carry bit set for the next loop. The details are in handling different sized inputs, etc.

    For multiplication, the basic instruction “MULT” just multiplies two registers and stores the upper half of the result in one CPU register and the lower half of the result in another CPU register.

    For details on how it is actually done on a CPU, you’ll need to research the CPU’s instruction set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a small library for RSA or DSA without any dependencies like GMP
When I call get_d() on a MPQ variable in the GMP library, I only
Is it possible to use custom types in OpenCL kernel like gmp types (mpz_t,
I'm trying to implement long division for bignums. I can't use a library like
I'm writing a C library with GMP and its arbitrary precision floats. I need
Can someone tell me of a good C++ library for handling (doing operations etc...)
How does one interface a Go program with a C library? I've been browsing
I'm using the GMP library to make a Pi program, that will calculate about
I have a lot of code that performs bitwise operations on unsigned integers. I
I use a libgmp (GMP) to work with very long integers, stored as mpz_t

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.