This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <setjmp.h> | |
#define BYTE (1) | |
#define KILOBYTE (1024*(BYTE)) | |
#define MEGABYTE (1024*(KILOBYTE)) | |
#define GIGABYTE (1024*(MEGABYTE)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Max DeLiso <[email protected]> | |
* Hydra.c | |
*/ | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <signal.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Max DeLiso <[email protected]> | |
* | |
* Purpose: compute prime numbers using a Sieve of Atkin | |
* | |
* Runtime efficiency: O(N/log log N) | |
* | |
* Memory efficiency: N/8 bytes | |
* | |
* Input: Limiting value n, [1,n-1] will be computed and outputted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#define BUFFER_SIZE 4096 | |
DWORD write( HANDLE out, const char* buf ); | |
DWORD read( HANDLE in, char* buf, int bufSize ); | |
int CALLBACK WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) | |
{ | |
DWORD dwThreadID; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ *.swp eflood |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* author: Max DeLiso <[email protected]> | |
* file: epolltest.c | |
* description: some experiments with polling | |
* stdin and signalfd on linux | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS | |
#include <Windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
void* fallibleMalloc(int n); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
probe: probe.o makefile.mvc | |
link /nologo /entry:probe /out:probe.exe /subsystem:console kernel32.lib probe.obj /verbose:lib | |
probe.o: probe.asm makefile.mvc | |
nasm -fwin32 -o probe.obj probe.asm | |
clean: | |
erase /f /q probe.obj probe.exe |
OlderNewer