Author Topic: C code exercises  (Read 251 times)

daydreamer

  • Member
  • *****
  • Posts: 1721
  • building nextdoor
C code exercises
« on: July 16, 2021, 09:28:09 PM »
Exercises that made in assembler version, gets you extra exercise
Calculator, can be done with gp regs,integer or fixed point,fpu,SSE,SSE2,AVX
Made AVX calculator
Chinese unicode number output
Pythagoras
X^2 curve equations solver
Taylor series
Primes
Card game Shuffle,+exercises to add functionality ala poker game
Iteration vs recursion Fibonacci benchmark?
Sorting Algos




 
SIMD fan and macro fan
why assembly is fastest is because its switch has no (brakes) breaks
:P
only in 16bit assembly you can get away with "Only words" :P

daydreamer

  • Member
  • *****
  • Posts: 1721
  • building nextdoor
Re: C code exercises
« Reply #1 on: July 18, 2021, 11:04:03 PM »
SIMD fan and macro fan
why assembly is fastest is because its switch has no (brakes) breaks
:P
only in 16bit assembly you can get away with "Only words" :P