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: Oliviéri<jean-marc.olivieri@w...>
    Date: Fri Apr 15 15:33:09 CEST 2005
    Subject: [openrisc] gcc, __modsi3, bug
    Top
    I hope so. In fact % operator means the reminder of a Euclidian division:
    (a * b) + c = d

    regards
    -----Message d'origine-----
    De : openrisc-bounces@o... [mailto:openrisc-bounces@o...]
    De la part de Matjaz Breskvar
    Envoyé : jeudi 14 avril 2005 00:28
    À : openrisc@o...
    Objet : [openrisc] gcc, __modsi3, bug

    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.
    _______________________________________________
    http://www.opencores.org/mailman/listinfo/openrisc





    ReferenceAuthor
    [openrisc] gcc, __modsi3, bugMatjaz Breskvar

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