mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-24 19:34:01 +00:00
16 lines
390 B
C
16 lines
390 B
C
#include <stdio.h>
|
|
|
|
int cleonos_app_main(void) {
|
|
static const char banner[] = "spin: busy loop started (test Alt+Ctrl+C force stop)\n";
|
|
volatile unsigned long long noise = 0xC1E0C1E0ULL;
|
|
|
|
(void)fputs(banner, 1);
|
|
|
|
for (;;) {
|
|
noise ^= (noise << 7);
|
|
noise ^= (noise >> 9);
|
|
noise ^= 0x9E3779B97F4A7C15ULL;
|
|
noise += 0xA5A5A5A5A5A5A5A5ULL;
|
|
}
|
|
}
|