Post Created date
help with Bubble Sort
Torby wrote: hint:   There's a quicksort function built into the libraries.   I'll second that. Use qsort with a custom comparator function.   Pedantic mode on:...
Tuesday, 16 July 2019 - 20:40
double/float questions
skeeve wrote: I think you need about 2 bits past the lsb of the operand with the larger absolute value. The second bit is the or of all the lower bits.   No, you do need 3...
Monday, 1 July 2019 - 17:53
double/float questions
kk6gm wrote: The point being that trying to calculate sin(__FLT_MAX__) is a fool's errand. It very well may be, but it can still be computed close to the exact value (Cliff's...
Friday, 28 June 2019 - 17:34
double/float questions
skeeve wrote: christop wrote:f3 is exactly 0. The value 1.0 is rounded to 0 when it's subtracted from a much larger value (__FLT_MAX__), so that f1 == f2.IEEE's implicit...
Friday, 28 June 2019 - 17:25
double/float questions
kk6gm wrote: So f1 == (f1 - 1.0).  I think that proves the point. Yes, for sufficiently large f1. I'm not sure what point you're trying to prove. It should be well-...
Friday, 28 June 2019 - 16:49
double/float questions
kk6gm wrote: Simple exercise   float f1, f2, f3; f1 = __FLT_MAX__; f2 = __FLT_MAX__ - 1.0; f3 = f1 - f2; What is the value of f3? f3 is exactly 0. The value 1.0 is rounded...
Friday, 28 June 2019 - 16:08
double/float questions
Looks correct to me: https://www.wolframalpha.com/input/?i=sine(340282346638528859811704183484516925440+mod+(2*pi))   (3.4028235e38 is only an approximation for...
Friday, 28 June 2019 - 15:52
structure fails to update
Fianawarrior wrote: Okay, I have a little more information.   The function "hardware_write_block" works.  However the structure streamExt seems to be pointed at a...
Tuesday, 28 May 2019 - 20:50
can I ignore the following warning
AndreyT wrote: skotti wrote:works.   Formally, that's a violation of strict aliasing semantics. Today it "works", tomorrow it might stop working.   I read recently...
Saturday, 25 May 2019 - 00:42
longjmp() at the end of an ISR ? Or Goto+flag ?
skeeve wrote: BTW my recollection is that the way to handle register-trashing by longjmp is to call setjmp from a function that does nothing else but return the value....
Wednesday, 15 May 2019 - 18:10
Sampling rate + reconstruction question
I recommend that you watch https://xiph.org/video/vid2.shtml (go to 3:36, the "stairsteps" chapter).   By the way, we can't even hear the difference between a 20kHz sine...
Tuesday, 7 May 2019 - 18:03
Help with USART Atmega328
clawson wrote:AFAIK most terminals will send all of 0x01 to 0x1A for Ctrl-A to Ctrl-Z. If you are lucky you'll even find Ctrl-@ can be used for 0x00 and Esc has generally always...
Tuesday, 9 April 2019 - 23:12

Pages