1/2/2024 0 Comments Isoar softwareThe copyright notice, and this permission notice shall be included in all copies or substantial portions of the Software. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Modified work Copyright (c) 2016 Kevin Michael Woley Licensed under the terms of the MIT license: The source for this Pebble package can be found on GitHub at pebble-math-sll and is maintained by Kevin Michael Woley. If(x 's math-sll library tailored to Pebble smart watches. Add ('-Wa,-mimplicit-it=thumb') to your wscript file to enable proper ARM assembly compilation.Run pebble package install pebble-math-sll from your project's directory to install the package in your project.No checking for divide by zero (error).No checking for arguments out of range (error).This yields a decent range and accuracy for many applications. This library is limited to handling numbers with a whole part of up to 2^31 - 1 = 2.147483647e9 in magnitude, and fractional parts down to 2^-32 = 2.3283064365e-10 in magnitude. Since the format used is fixed point, there is never a need to do time consuming checks and adjustments to maintain normalized numbers, as is the case in floating point. Since "long long" is a elementary type, it can be passed around without resorting to the use of pointers. All math is done using the 64 bit signed "long long" format (sll), and is not intended to be portable, just as simple and as fast as possible. It is time consuming to carry the extra precision around, particularly on platforms that don't have a dedicated floating point processor like the Pebble. This library provides an alternative to using native C floating point.įloating point packs the most accuracy in the available bits, but it often provides more accuracy than is required. Pebble is natively bad at emulating handling floating point - using standard C double and float types bloat Pebble code and perform very slowly. A fixed point (31.32 bit) math library for Pebble smart watches.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |