#include <GenericOperation.h>
Public メソッド | |
Type | operator() (OpEmulationState *opState) |
GenericOperation.h の 900 行で定義されています。
Type Onikiri::EmulatorUtility::Operation::NumberOfPopulations< Type, TSrc >::operator() | ( | OpEmulationState * | opState | ) | [inline] |
GenericOperation.h の 902 行で定義されています。
00903 { 00904 u64 value = static_cast<u64>( TSrc()(opState)); 00905 00906 value = (value & 0x55555555) + (value >> 1 & 0x55555555); 00907 value = (value & 0x33333333) + (value >> 2 & 0x33333333); 00908 value = (value & 0x0f0f0f0f) + (value >> 4 & 0x0f0f0f0f); 00909 value = (value & 0x00ff00ff) + (value >> 8 & 0x00ff00ff); 00910 return static_cast<Type>((value & 0x0000ffff) + (value >>16 & 0x0000ffff)); 00911 }