~ubuntu-branches/ubuntu/karmic/lcms/karmic

« back to all changes in this revision

Viewing changes to src/cmsmtrx.c

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2009-04-03 13:55:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090403135500-psa3ox0my6u6a5cp
Tags: 1.18.dfsg-0ubuntu1
* New upstream release
* Remove 11_security_CVE-2009-0581_0723_0733.dpatch, security 
  issues fixed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
518
518
 
519
519
LCMSBOOL MAT3solve(LPVEC3 x, LPMAT3 a, LPVEC3 b)
520
520
{
521
 
        MAT3 m, a_1;
522
 
 
523
 
        CopyMemory(&m, a, sizeof(MAT3));
524
 
 
525
 
        if (!MAT3inverse(&m, &a_1)) return FALSE;  // Singular matrix
526
 
 
527
 
        MAT3eval(x, &a_1, b);
528
 
        return TRUE;
 
521
    MAT3 m, a_1;
 
522
 
 
523
    CopyMemory(&m, a, sizeof(MAT3));
 
524
 
 
525
    if (!MAT3inverse(&m, &a_1)) return FALSE;  // Singular matrix
 
526
 
 
527
    MAT3eval(x, &a_1, b);
 
528
    return TRUE;
529
529
}
530
530
 
531
531