Skip to content

Instantly share code, notes, and snippets.

@uvlad7
Created January 1, 2023 14:16
Show Gist options
  • Save uvlad7/2f9dc69d05ea7337c1229520dbe43e9f to your computer and use it in GitHub Desktop.
Save uvlad7/2f9dc69d05ea7337c1229520dbe43e9f to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
long long x = 1, l[2];
if (*(char *) &x) // Little-endian
l[0] = 7299807751963697480LL, l[1] = 9414436869185655LL;
else
l[0] = 5215573471842553445LL, l[1] = 8583959181729603840LL;
printf("%s\n", (char *) l);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment