Skip to content

Instantly share code, notes, and snippets.

View itisravi's full-sized avatar
🏠
Working from home

Ravishankar N itisravi

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am itisravi on github.
  • I am itisravi (https://keybase.io/itisravi) on keybase.
  • I have a public key ASAunipCe6D9-SuVpuxE6eE7qE2q5qChf8wlO4CVa0iaZgo

To claim this, I am signing this object:

#!/bin/bash
# Original script here: https://gist.github.com/Harshavardhana/6502979r
#TARPATH="/root/bin/tar-1.23/usr/local/bin/"
TARPATH="/root/bin/tar-1.26/usr/local/bin/"
_init()
{
DIRZ=$( seq 1 100 )
}
cleanup()
@itisravi
itisravi / checksum.c
Last active August 10, 2022 02:17
LFN checksum for a given short file name in FAT32
#include <stdio.h>
#include <stdlib.h>
unsigned char
ChkSum (unsigned char *pFcbName)
{
short FcbNameLen;
unsigned char Sum;
Sum = 0;
.arch armv7-a
.eabi_attribute 27, 3
.fpu neon
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
#include <arm_neon.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#define SIZE (4*1000)
void double_elements(unsigned int *ptr, unsigned int size);
int main(void)
.arch armv7-a
.eabi_attribute 27, 3
.fpu vfp3
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 6
@itisravi
itisravi / gist:930990
Created April 20, 2011 10:57
plain.c
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#define SIZE (4*1000)
void double_elements(unsigned int *ptr, unsigned int size);
int main(void)
{