I need to calculate the Delta-E distance between two colors. The algorithm to do so with two colors in CIELab color space looks like this:

Are there known open-sourced implementations of this algorithm? It’s not hard to implement, but from my last attempt of implementing a color-space conversion algorithm I’d prefer to not re-develop the wheel when it’s already on the road and tested.
CIEDE2000 would be nice too and more accurate, but might also be overkill on the iPhone. CIE94 would be just fine I guess.
I typed in the equation (for Common Lisp code see at bottom) and
ran a few random evaluations. The parameters are listed in this order:
L*1 a*1 b*1 L*2 a*2 b*2 DeltaE*
I’m not perfectly sure that the results are correct. But if your code gives
the same results, then it’s probably sufficient.
And here is the source code (tested in SBCL):