Fröhling

Niels Fröhling about [X]HTML, JS and technical tidbits

  • Home
  • About
August 21st, 2010

jQuery’s animate is short-thought

Ethatron in Uncategorized

Currently I’m experimenting with jQuery (always being told prototype.js is evil). In my project I have to make quite some complex animations and I tried to detect if I can map them to the animate() syntax. Uh, and all hell broke loose. Here is my 24h experience:

You can’t animate regular DOM properties, like image width/height, [...]

Weiterlesen...

1 Kommentar
April 12th, 2010

movntq alignment

Ethatron in Uncategorized

Uh, sometimes you don’t know what’s in the mind of intel guys.
They state in their documentation that the movntq-op (taken over from MMXExt) has to take place on 16-byte aligned memory. What??? Either it’s a copy & paste error, it’s probably suppose to mean 8-byte aligned memory, or you got a command which can’t be [...]

Weiterlesen...

Kein Kommentar
February 1st, 2009

Uh, more on compilers

Ethatron in Optimizations

Uh, I don’t know how I may introduce this one. I don’t know if I should call it a horrific failure or just hilarious. This is what comes out of VS2008 for a signed short division:
symSend = mergedNGram % numCases;
mergedNGram /= numCases;
The produced code:

00024 0f bf 86 2c 04
[...]

Weiterlesen...

Kein Kommentar
December 20th, 2008

Peephole optimization, what’s that?

Ethatron in Optimizations

You never stop learning, I just explored how I can force a compiler into producing the sbb op on x86. It’s quite difficult actually, most of them produce for example cmp + seta + neg for the term -(a > b). In fact the only deterministic behaviour is with a very special ternery term (a [...]

Weiterlesen...

Kein Kommentar
July 14th, 2008

X86 follows opportunist logic, instead of academic

Ethatron in Uncategorized

Ei, once in a while you ask yourself about the (in)sanity of the X86-architecture. Well everybody knows, the ops offered by MMX upto SSE58942 are actually choosen by dicing 42 out of 255 possible once. Well I just don’t go too deep into emotional depression here. Just my list of missing and missguided ops:

pmulbw
pmulsdq
pmulhd/pmulld
paddsd/psubsd/paddusd/psubusd
pmaddbw
pmadddq
pmaddubw/pmadduwd/pmaddudq

psadwd (horizontal [...]

Weiterlesen...

Kein Kommentar

Tags

  • Algorithms Assembler bash C++ Homemade Javascript MMX Optimization Rants TYPO3

Categories

    • Applications
      • TYPO3
    • TidBits
      • Algorithms
      • Approximations
      • Equivalence
      • Fixes
      • Javascript
      • Optimizations
      • Scripts
    • Uncategorized

Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Recent Posts

    • jQuery’s animate is short-thought
    • movntq alignment
    • OP-equivalent series (pavgd)
    • OP-equivalent series (psubq)
    • OP-equivalent series (paddq)

 

  • September 2010
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  

Archives

    • August 2010
    • April 2010
    • February 2010
    • January 2010
    • July 2009
    • February 2009
    • December 2008
    • November 2008
    • August 2008
    • July 2008
    • May 2008
© 2010 Wired by Fröhling
Design von Dezzain Studio
Übersetzt von Htwo
Nature Pictures | Bamboo Blinds