Provided by: opengl-4-man-doc_1.0~svn31251-1build1_all bug

NAME

       log2 - return the base 2 logarithm of the parameter

DECLARATION

       genType log2(genType x);

PARAMETERS

       x
           Specify the value of which to take the base 2 logarithm.

DESCRIPTION

       log2 returns the base 2 logarithm of x. i.e., the value y which satisfies x2y. Results are
       undefined if x0.

VERSION SUPPORT

       ┌─────────┬───────────────────────────────────────────────────────────────────────────────────┐
       │         │        OpenGL Shading Language Version                                            │
       ├─────────┼──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┤
       │Function1.101.201.301.401.503.304.004.104.204.304.404.50 │
       │Name     │      │      │      │      │      │      │      │      │      │      │      │      │
       ├─────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
       │log2     │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │  ✔   │
       └─────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

SEE ALSO

       exp(), log(), exp2()

COPYRIGHT

       Copyright © 2011-2014 Khronos Group. This material may be distributed subject to the terms
       and conditions set forth in the Open Publication License, v 1.0, 8 June 1999.
       http://opencontent.org/openpub/.

COPYRIGHT

       Copyright © 2011-2014 Khronos Group

[FIXME: source]                             07/22/2015                                   LOG2(3G)