Since 6/1/2012 3:33:10 PM, jgk1 has written 8 articles and participated in 168 conversations. jgk1 signature: jgk1
jgk1's articles:
Items(8) /1
size test228 (4/25/2012 11:34:13 PM) comp.lang.c I have macros: #define MAKE_SIZE_CLASS (X, Y, CLS) ((CLS) = ((X) & 0xF > 4 & 0xF, (Y) = (CLS) & 0x3) with this: #define CLASS_SIZE(X, Y) \ ((0x4 | (Y) & 0x3) << (X)) How do i get an inverse of CLASS_SIZE. ... jgk
ffs161920 (4/22/2012 9:36:30 PM) comp.lang.c case A int ffs16a(int x) { int res; if ((x & 0xFF) == 0) res = kk_ffstab[x & 0xFF]; else res = kk_ffstab[x >> 8 & 0xFF] + 8; return res; } case B int ffs16b(int x) { int r... jgk
double hashing340 (4/2/2012 7:49:06 PM) comp.programming question We some have 'docs' that can be 'contracted' or 'expanded'. They sometimes change from contracted to expanded and vice versa. They each have a 'key' that's unique [and doesn't change when they chang... jgk
things i would ban from clc8338 (3/11/2012 11:05:45 PM) comp.lang.c 1. it's not twos' complement 2. an 'int' may have a trap value -who- -cares- go have sex with youselves ... jgk
i think i found1822 (3/10/2012 1:09:33 AM) comp.lang.c How about this? int f(int x) { int a[2]; int *p; p = &a[0]; *p = 2; ++p; *p = 3; /* printf("%d %d\n", a[0], a[1]); */ } That pretty much has to work, right? So what's the deal with arrays... jgk
malloc #25631 (2/16/2012 9:04:36 PM) comp.lang.c++ Bugs of memory allocation will make you mad. Bugs *in* memory allocation will put you in the cuckoo people place. ... jgk
question #22931 (1/12/2012 4:53:50 AM) comp.lang.c What is the greatest set of four primes ssuch that they ae all <2^64? ... jgk
the loop control4931 (10/29/2011 9:38:28 PM) comp.lang.c Which is better? int fa(int fool, struct foo *foob) { int ct; struct foo *foop; ... ct = fool; foop = foob; while (--ct >= 0) { ...(foop) foop++; } ... } int fb(int f... jgk
working with big numbers2656 (5/13/2012 3:42:42 PM) comp.lang.c Dear Friends, i need to know how to calculate big numbers i.e. factorial of 100. i google and found a solution but didn`t understand how it is done.and some others solution is using some library .but i actual... ashishmourya21(34)
Idiomatic module encapsulation1031 (5/22/2012 9:18:49 AM) comp.lang.c Hello everyone, I'm implementing a wrapper around platform-dependent "primitives", and I'm trying to have 0 platform-dependent code (even includes) in the "module" interface header. For example, consider this... Noob
Error returns and repeated code, GOTOs, etc.14047 (5/30/2012 5:44:06 AM) comp.lang.c Hi.
I've got some stuff that looks like this:
---
ErrorCode MyFunc()
{
BigNum a, b, c, d;
ErrorCode rv;
rv = BigNum_Initialize(&a);
if(rv != ERROR_SUCCESS)
... mike4ty4(405)
Decomposing a FLOAT2641 (5/31/2012 8:59:58 PM) comp.lang.c Hello
If I have a FLOAT variable how to retrieve its exponent and mantissa in
the most portable way.
Cheers Raj
... raj121190(27)
Array sizes and const5026 (6/2/2012 8:43:40 PM) comp.lang.c
I am using Mingw 3.4.5 on a 'Doze box, but it pretty much
follows any Gnu compiler I've run into.
Why is this:
---------------------------
#define SIZE 20
const int size = SIZE;
char array[SIZE];
-... lcargill991(440)
Quasi 02135 (6/4/2012 9:32:06 AM) comp.lang.c Hi friends:
Machine epsilon is the maximum relative error of the chosen rounding
procedure
#include
#include
#include
int main(void)
{
double a = 0.1;
double b = 0.1;
a += 1.0;
a -= ... davranfor(97)
dequeue() not working1046 (6/21/2012 7:11:27 AM) comp.lang.c WANTED: to dequeue an element from Queue.
GOT: nothing happening
/* A queue implementation with the operations that I need:
* (1) Add an element to the front (head) of the queue
* (2) Remove an elemen... sunrise2(598)
Wrapping existing UNIX commands in C9956 (7/29/2012 3:11:18 PM) comp.lang.c Hi,
So I am aware of the exec family of functions and the system function to
execute external commands but they do not seem to offer the
functionality to allow me to get the output of said executable so ... chicken(50)