LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Matjaz Breskvar<phoenix@o...>
    Date: Thu Apr 14 00:28:09 CEST 2005
    Subject: [openrisc] gcc, __modsi3, bug
    Top
    Hi all !

    There was a bug in __modsi3 (the one called for '%' computation) functions
    in all compiler version in the opnecores cvs. I fixed it
    in gcc-3.2.3 and gcc-3.4.2. Sometimes the sign of the result was wrong,
    so i suggest everybody update the compiler ...

    best regards,
    p.

    PS. right now x = a % b is positive if both a non-negative and b non-negative
    or both negative. i hope this is correct.

    Follow upAuthor
    [openrisc] gcc, __modsi3, bugOliviéri

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.