| 969 | // ------------------------------------------------ |
| 970 | |
| 971 | char * Int::GetC64Str(int nbDigit) { |
| 972 | char *tmp = (char*) calloc(1,256); |
| 973 | char bStr[256]; |
| 974 | tmp[0] = '{'; |
| 975 | tmp[1] = 0; |
| 976 | for (int i = 0; i< nbDigit; i++) { |
| 977 | if (bits64[i] != 0) { |
| 978 | #ifdef _WIN64 |
| 979 | sprintf(bStr, "0x%016I64XULL", bits64[i]); |
| 980 | #else |
| 981 | sprintf(bStr, "0x%" PRIx64 "ULL", bits64[i]); |
| 982 | #endif |
| 983 | } else { |
| 984 | sprintf(bStr, "0ULL"); |
| 985 | } |
| 986 | strcat(tmp, bStr); |
| 987 | if (i != nbDigit -1) strcat(tmp, ","); |
| 988 | } |
| 989 | strcat(tmp,"}"); |
| 990 | return tmp; |
| 991 | } |
| 992 | |
| 993 | // ------------------------------------------------ |
| 994 |
nothing calls this directly
no outgoing calls
no test coverage detected