OSDN Git Service

SDL_Vulkan_UnloadLibrary 新規追加 https://wiki.libsdl.org/SDL_Vulkan_UnloadLibrary
[sdl2referencejp/sdl2referencejp.git] / SDL_MostSignificantBitIndex32.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="ja-JP">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <meta name="keywords" content="Simple Directmedia Layer SDL2.0">
7 <link rel="top" href="index.html" title="\83z\81[\83\80">
8 <link rel="parent" href="CategoryBits.html" title="1\82Â\8fã">
9 <title>SDL_MostSignificantBitIndex32</title>
10 </head>
11 <body>
12 <a href="index.html">\96Ú\8e\9f</a> - <a href="ApiByCategory.html">API(\8b@\94\\95Ê)</a> - <a href="CategoryBits.html">\83r\83b\83g\91\80\8dì</a> - SDL_MostSignificantBitIndex32
13 <hr>
14 <h1>SDL_MostSignificantBitIndex32</h1>
15 32bit\82Ì\92l\82Å\90Ý\92è\82³\82ê\82Ä\82¢\82é\8dÅ\8fã\88Ê\82Ì\83r\83b\83g\82ª\89½\83r\83b\83g\96Ú\82©\82ð\93¾\82é.
16 \82±\82ê\82Í\92ê\82ª2\82Ì\91Î\90\94\82Æ\93¯\82\82Å\82 \82é.
17 <h2>\8d\\95¶</h2>
18 <code>int SDL_MostSignificantBitIndex32(Uint32 x)</code>
19 <h2>\88ø\90\94</h2>
20 <table border="1" summary="">
21 <tr><td>x</td><td>\8dÅ\8fã\88Ê\83r\83b\83g\82ð\93¾\82é\90\94\92l</td></tr>
22 </table>
23 <h2>\96ß\82è\92l</h2>
24 \8dÅ\8fã\88Ê\83r\83b\83g\82ª\89½\83r\83b\83g\96Ú\82©\82ð\96ß\82·. x\82ª0\82Ì\82Æ\82«-1\82ð\96ß\82·.
25 <h2>\83T\83\93\83v\83\8b\83R\81[\83h</h2>
26 <p>
27 <code>
28 <pre>
29 #include "SDL_bits.h"
30
31 if (bitmask) {
32     int index = SDL_MostSignificantBitIndex32(bitmask);
33 }
34 </pre>
35 </code>
36 </p>
37 <h2>SDL Wiki\82Ö\82Ì\83\8a\83\93\83N</h2>
38 <a href="https://wiki.libsdl.org/SDL_MostSignificantBitIndex32">SDL_MostSignificantBitIndex32 - SDL Wiki</a>
39 <hr>
40 </body>
41 </html>