Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: _svfprintf_r includes aeabi_uldivmod which in turn includes software divisions..?

  1. #1
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,280

    _svfprintf_r includes aeabi_uldivmod which in turn includes software divisions..?

    Teensy 4, see title.
    Do we have a bug with printf? Perhaps include a wrong library?
    T4 shouldn't need integer divisions in software...
    The added code is a) slow and b) very large... and not enough, all that code is placed in ITCM..

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,958
    @Frank B
    Ok - I know I can't answer this but curious since I have no idea what it means. Think you are saying that what lib is included its using software to calculate integer divisions when T4 should be doing it natively?

  3. #3
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,280
    Quote Originally Posted by mjs513 View Post
    @Frank B
    Ok - I know I can't answer this but curious since I have no idea what it means. Think you are saying that what lib is included its using software to calculate integer divisions when T4 should be doing it natively?
    Yes :-)
    In the meantime I have now learned that __aeabi_uldivmod is used here for 64 bit data types.
    So, everything is OK.



  4. #4
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    6,958
    Thanks for the info and update

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •