Lines Matching refs:RET
314 template <typename PARAM, typename RET>
315 GLM_FUNC_DECL RET bitfieldInterleave(PARAM x, PARAM y);
317 template <typename PARAM, typename RET>
318 GLM_FUNC_DECL RET bitfieldInterleave(PARAM x, PARAM y, PARAM z);
320 template <typename PARAM, typename RET>
321 GLM_FUNC_DECL RET bitfieldInterleave(PARAM x, PARAM y, PARAM z, PARAM w);
324 template <typename PARAM, typename RET>
325 inline RET bitfieldInterleave(PARAM x, PARAM y)
327 RET Result = 0;
333 template <typename PARAM, typename RET>
334 inline RET bitfieldInterleave(PARAM x, PARAM y, PARAM z)
336 RET Result = 0;
337 for (RET i = 0; i < sizeof(PARAM) * 8; i++)
339 Result |= ((RET(x) & (RET(1) << i)) << ((i << 1) + 0));
340 Result |= ((RET(y) & (RET(1) << i)) << ((i << 1) + 1));
341 Result |= ((RET(z) & (RET(1) << i)) << ((i << 1) + 2));
346 template <typename PARAM, typename RET>
347 inline RET bitfieldInterleave(PARAM x, PARAM y, PARAM z, PARAM w)
349 RET Result = 0;
352 Result |= ((((RET(x) >> i) & RET(1))) << RET((i << 2) + 0));
353 Result |= ((((RET(y) >> i) & RET(1))) << RET((i << 2) + 1));
354 Result |= ((((RET(z) >> i) & RET(1))) << RET((i << 2) + 2));
355 Result |= ((((RET(w) >> i) & RET(1))) << RET((i << 2) + 3));