#include "dkcMath.h"
dkcMath.cのインクルード依存関係図
マクロ定義 | |
#define | DKUTIL_C_MATH_C |
関数 | |
DKC_INLINE void WINAPI | dkcSrand (ULONG *seed, ULONG num) |
C言語の標準srand()を種値(ステート)を外部に保存できるようにしたもの | |
DKC_INLINE int WINAPI | dkcRand (ULONG *seed) |
C言語の標準rand()を種値(ステート)を外部に保存できるようにしたもの | |
DKC_INLINE int WINAPI | dkcRandom (ULONG *seed, ULONG Max_) |
0からMax_までの乱数を出力する。 | |
DKC_INLINE uint32 WINAPI | dkcPrime79 (uint32 n) |
param n[in] 0から79までの数を入れる |
File: fastmath.cpp
This file is provided without support, instruction, or implied warranty of any kind. NVIDIA makes no guarantee of its fitness for a particular purpose and is not liable under any circumstances for any damages or loss whatsoever arising from the use or inability to use this file or items derived from it.
Comments:
dkcMath.c で定義されています。
|
|
|
param n[in] 0から79までの数を入れる
参照先 dkcmFORCE_NOT_ASSERT, と dkcmPrime79. 00047 { 00048 dkcmFORCE_NOT_ASSERT(n > 79); 00049 return dkcmPrime79(n); 00050 }
|
|
C言語の標準rand()を種値(ステート)を外部に保存できるようにしたもの
参照元 dkcRandom(). 00036 { 00037 (*seed) = (*seed) * 1103515245L + 12345; 00038 return (unsigned)((*seed) / 65536L) % 32768U; 00039 }
|
|
0からMax_までの乱数を出力する。
参照先 dkcRand(). 参照元 dkcRandomV(). 00042 { 00043 return dkcRand(seed) * (Max_ ) / SHRT_MAX; 00044 }
|
|
C言語の標準srand()を種値(ステート)を外部に保存できるようにしたもの
|