COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register
jgk1 (251) 14 Articles, 237 Replies, 251 Points

Since 6/1/2012 3:33:10 PM, jgk1 has written 14 articles and participated in 237 conversations.
jgk1 signature:
jgk1

jgk1's articles:
 Items(14) /2 Next >> Last >| size test 2 38 (4/25/2012 11:34:13 PM) comp.lang.cI 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 ffs16 23 31 (4/22/2012 9:36:30 PM) comp.lang.ccase 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 hashing 3 58 (4/2/2012 7:49:06 PM) comp.programmingquestion 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 clc 83 54 (3/11/2012 11:05:45 PM) comp.lang.c1. it's not twos' complement 2. an 'int' may have a trap value -who- -cares- go have sex with youselves ...jgk i think i found 18 32 (3/10/2012 1:09:33 AM) comp.lang.cHow 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 #2 56 58 (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 BI option 6 7 (2/14/2012 9:20:55 PM) comp.archHow about some 'branch-on-interrupt' instruction? ...jgk well when i was a kid 6 4 (1/16/2012 8:34:10 PM) comp.archhttp://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Pdp-11-70-panel.jpg/800px-Pdp-11-70-panel.jpg ...jgk question #22 9 48 (1/12/2012 4:53:50 AM) comp.lang.cWhat is the greatest set of four primes ssuch that they ae all <2^64? ...jgk register delay slot 19 7 (12/12/2011 10:57:09 PM) comp.archSuppose we say that a put to a register does not show up in the next instruction, only the one after that. Now we have some options: a) the register is guaranteed to have the previous value b) it's undefined...jgk

jgk1's replies:
 Items(113) /12 Next >> Last >| working with big numbers 26 79 (5/13/2012 3:42:42 PM) comp.lang.cDear 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) Will 'free' return the memory Immediately to the OS ? 26 48 (5/15/2012 9:34:57 PM) comp.lang.cAs per subject-line, thank-you ...raj121190 (30) Idiomatic module encapsulation 10 45 (5/22/2012 9:18:49 AM) comp.lang.cHello 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. 140 72 (5/30/2012 5:44:06 AM) comp.lang.cHi. 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 (440) Decomposing a FLOAT 26 57 (5/31/2012 8:59:58 PM) comp.lang.cHello If I have a FLOAT variable how to retrieve its exponent and mantissa in the most portable way. Cheers Raj ...raj121190 (30) Array sizes and const 50 49 (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 (563) Quasi 0 21 46 (6/4/2012 9:32:06 AM) comp.lang.cHi 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) Sorry for interrupt,because my mother language is not English,it may be a little confused to read the c programming language. 6 50 (6/12/2012 6:47:42 AM) comp.lang.ccharpter6 6.1 basic "The tag names this kind of structure, and can be used subsequently as a shorthand for the part of the declaration in braces. " I don't understand it well. I refer to some native l...zhabgyuan1993 (35) dequeue() not working 10 60 (6/21/2012 7:11:27 AM) comp.lang.cWANTED: 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 (603) Wrapping existing UNIX commands in C 99 93 (7/29/2012 3:11:18 PM) comp.lang.cHi, 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 (53)