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 7637537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:57:57+00:00 2026-05-31T07:57:57+00:00

I have downloaded glibc’s source code, and find the function ceil() for a long

  • 0

I have downloaded glibc’s source code, and find the function ceil() for a long time, but I cannot find it, who can tell me where is it?

And where can I find some detailed information about how to find certain function’s source code in glibc’s source.

Thank you.

  • 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-31T07:57:59+00:00Added an answer on May 31, 2026 at 7:57 am

    At a guess, it’s probably written in assembly language. It’s basically done in three steps:

    1. Change rounding mode to “round up”
    2. round to integer (FRNDINT)
    3. restore previous rounding mode.

    Unfortunately, the code to change the rounding mode is fairly ugly. The rounding mode is a few bits in the floating point control register. You can’t change the FPCR inside the FPU, so you have to store it, then load it into a register on the CPU, modify some bits, store that, and load the modified version back into the FPU. Then you execute one FP instruction, and do the same again, but in reverse.

    I do seem to recall some of Intel’s literature years ago talking about this, and (perhaps) talking about a better way to handle it — but I could be imagining that, and even if I’m not, I don’t remember how their improved version worked.

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

Sidebar

Related Questions

I have downloaded source code of glibc (GNU c library), version - 2.15.90. I
I have downloaded some Java source code from a book. It contains many directories
I have downloaded this project http://code.google.com/p/django-budget/ How can i install it. Do i need
I have downloaded CVtypes and tried the example scripts with it but cannot get
I have downloaded a MetaTrader MQL4 language .mq4 source-code file from here and I
I have downloaded demo for Kal calendar from source code API at github and
I have downloaded the source code of the MVC 3 to learn How it
I have downloaded Skype4COM from Skype so my question is, can i integrate it
I have downloaded cscope 15.6 on MacOSX. But when i try launching it in
I have downloaded Qt Mobility Open source project. I had a set of demo

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.