Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Hmm, isn't this a duplicate of issue #17, which is already fixed? The macro 
should be based on sizeof(long) so that bitcount is taken into account:
https://code.google.com/p/libfixmath/source/browse/trunk/libfixmath/fix16.c#278

Running the attached test.cc on my computer:

petteri@oddish:~/libfixmath/unittests$ uname -a
Linux oddish 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux
petteri@oddish:~/libfixmath/unittests$ g++ -I ../libfixmath -o test test.cc 
../libfixmath/fix16.c
petteri@oddish:~/libfixmath/unittests$ ./test
sizeof(int) = 4
sizeof(long) = 8
9.09087

Original comment by Petteri.Aimonen on 7 Nov 2013 at 8:20

Attachments:

from libfixmath.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Ah, just saw the revision number r64. Upgrade to newest svn and it should work.

flatmush: maybe we should put a new release on the downloads tab some time? :)

Original comment by Petteri.Aimonen on 7 Nov 2013 at 8:22

from libfixmath.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
I would second that suggestion. If this is a known bug that has been fixed then 
maybe the default suggested download shouldn't be a version of the library 
which still contains this bug.

Original comment by [email protected] on 7 Nov 2013 at 12:07

from libfixmath.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
flatmush: I took the liberty of marking the downloads as deprecated. Google 
Code will discontinue the supports for downloads soon anyway, so maybe it is 
better to only have svn.

Original comment by Petteri.Aimonen on 8 Dec 2013 at 6:18

  • Changed state: Done

from libfixmath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.