Commit Graph

1167 Commits

Author SHA1 Message Date
Joonas Sarajärvi
ad3422f6aa Better fix glm::findMSB for GCC >= 4.0
The previous fix only worked correctly for values where
the most significant enabled bit was the only enabled bit.

This change changes the implementation back to using clz,
but so that the result is changed with additional arithmetics.

There is still at least one known limitation with regards
to acceptable input types, but this is documented in the code.
2012-09-12 15:17:21 +03:00
Joonas Sarajärvi
daa51e42bb Fix glm::findMSB for GCC >= 4.0
Before this fix, the GCC specific MSB function returned the number
of leading zero bits in the parameter value. With this change,
the number of trailing zero bits is returned instead.

I am not entirely sure if this fix is correct, because I could not
find a clear reference about what findMSB in GLSL is really
supposed to return with some concrete input value.
At least the result is now consistent with the GLM_ARCH_PURE
implementation of glm::findMSB.
2012-09-12 01:59:13 +03:00
Joonas Sarajärvi
da530ac46e Fix integer version of glm::log2 for GCC
This pretty much reverts the fix done in commit
1ed0e3865b

This temporarily breaks log2 for GCC in cases where GLM_FORCE_PURE
is not defined. The workaround introduced in commit
1ed0e3865b seems to rely
on getting invalid results from the nlz function.

Broken nlz is caused by a broken findMSB function for GCC.

A fix for the findMSB function should be available in a nearby
separate commit.
2012-09-12 01:51:02 +03:00
Christophe Riccio
72a01d3432 Experiment to do 2012-08-22 18:22:06 +01:00
Christophe Riccio
09a8d5a621 Fixed warning from #123 comments 2012-07-01 11:32:55 +01:00
Christophe Riccio
ab552c3acd Compiled GLM site 2012-06-30 19:36:05 +01:00
Christophe Riccio
485700a546 Updated downloads 2012-06-30 14:45:56 +01:00
Christophe Riccio
5506d67789 Getting GLM 0.9.3.4 release 2012-06-30 14:05:52 +01:00
Christophe Riccio
ac8ec9b97c Fixed SSE includes with GCC 2012-06-30 01:05:45 +01:00
Christophe Riccio
9bd19663c1 Fixed #186, fixed warning 2012-06-28 19:45:28 +01:00
Christophe Riccio
3ab80ffe6d Fixed #187, fixed bitfieldExtract for vector based type 2012-06-28 19:40:42 +01:00
Christophe Riccio
a979cb483e Updated readme for GLM 0.9.3.4 release 2012-06-28 19:15:57 +01:00
Christophe Riccio
e26b0587b2 Deleted VIRTREV_xstream 2012-06-28 17:01:02 +01:00
Christophe Riccio
6eeec5c191 Updated index 2012-06-20 15:11:30 +01:00
Christophe Riccio
a5e450cc01 Merge branch '0.9.3' of github.com:Groovounet/glm into 0.9.3 2012-06-20 15:09:56 +01:00
Christophe Riccio
ba6807b754 Added SSE4 and AVX2 detection, most changes from d9dc21328f 2012-06-03 02:17:36 +01:00
Christophe Riccio
b88c550a10 Updated version for next release 2012-06-03 01:11:35 +01:00
Christophe Riccio
febf667159 Updated links 2012-05-12 15:42:33 +01:00
Christophe Riccio
c4d886a3d6 Updared readme 2012-05-10 00:14:20 +01:00
Christophe Riccio
965873430c Prepare GLM 0.9.3.3 release 2012-05-09 23:59:42 +01:00
Christophe Riccio
ac0c938442 Fixed VC warning 2012-05-09 22:39:17 +01:00
Christophe Riccio
ff3ad788df Merge branch '0.9.3' of github.com:Groovounet/glm into 0.9.3 2012-05-08 20:58:01 +01:00
Christophe Riccio
ade527271e Fixed transpose test 2012-05-02 13:09:26 +01:00
Christophe Riccio
45f82ab884 Added transpose test 2012-05-02 13:09:17 +01:00
Christophe Riccio
34dc3a6ef6 Fixed matrixCompMult function for none square matrix 2012-05-02 13:07:55 +01:00
Christophe Riccio
6920963069 Updated readme.txt 2012-05-02 11:28:34 +01:00
Christophe Riccio
a5fdf3c1bf Fixed ticket #182, isnan and isinf conflicts 2012-04-30 22:23:08 +01:00
Christophe Riccio
928ed30fe0 Fixed namespace issue with stream operators 2012-04-23 15:41:18 +01:00
Christophe Riccio
fb220d3f84 Fixed warnings: cast and redefined defines 2012-04-23 15:34:29 +01:00
Christophe Riccio
4989ad5a97 Fixed android detection #180 2012-04-23 14:58:46 +01:00
Christophe Riccio
17eb14125a Merge branch '0.9.3' of github.com:Groovounet/glm into 0.9.3 2012-04-19 11:30:28 +01:00
Christophe Riccio
958bb6f6ca Fixed GTX_compatibility on Android r7 2012-04-19 11:29:57 +01:00
Christophe Riccio
4585395a89 Added CMake test build options 2012-04-14 18:19:28 +01:00
Christophe Riccio
ac768ea12b Added an alias (slerp) for mix with quaternions 2012-04-14 15:33:44 +01:00
Christophe Riccio
874a675bb9 Fixed nextafter for float on Intel compiler 2012-04-14 14:45:27 +01:00
Christophe Riccio
535f67e45e Ticket #176, workaround for Intel compiler which has a bug with lookAt 2012-04-14 14:32:30 +01:00
Christophe Riccio
a2833dcb3c Merge branch '0.9.3' of github.com:Groovounet/glm into 0.9.3 2012-04-06 13:53:14 +01:00
Christophe Riccio
17563f9a28 Fixed perspectiveFov 2012-04-06 13:52:43 +01:00
Christophe Riccio
7373e7b8da Promote eulerAngles to GTC quaternion extension 2012-04-01 18:19:09 +01:00
Christophe Riccio
fa84c6d1b0 Added length implementation 2012-03-31 11:19:20 +01:00
Christophe Riccio
28ea6eb5c4 Merge pull request #5 from zhumeng1989/mytest
Fixed a bug in test/gtx_simd_mat4->test_mulD
2012-03-25 14:01:16 -07:00
Meng Zhu
4479150858 Fixed a bug in test/gtx_simd_mat4->test_mulD 2012-03-24 17:25:33 +08:00
Christophe Riccio
82f86a8057 Added GLM 0.9.3.2 release 2012-03-17 00:04:21 +00:00
Christophe Riccio
cca0dfa3b9 Updated github post 2012-03-10 20:55:29 +00:00
Christophe Riccio
14cfe58ede Move repository to git 2012-03-10 14:51:37 +00:00
Christophe Riccio
b963dab49d Removed api doc form the repository 2012-02-19 22:45:51 +00:00
Christophe Riccio
8537e33b8d Fixed ticket 169, parameter not used for mat division 2012-02-19 22:43:40 +00:00
Christophe Riccio
edccfa24b9 Fixed Clang version defines, ticket #170 2012-01-26 01:25:20 +00:00
Christophe Riccio
b08fd7e4b3 Added background 2012-01-25 14:10:28 +00:00
Christophe Riccio
92de55115b Release 0.9.3.1 2012-01-25 13:01:21 +00:00