~ubuntu-branches/ubuntu/trusty/openssl/trusty

« back to all changes in this revision

Viewing changes to crypto/bn/asm/mips.pl

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2014-01-08 15:57:24 UTC
  • mfrom: (11.1.46 sid)
  • Revision ID: package-import@ubuntu.com-20140108155724-kl61on9fyqmod2z9
Tags: 1.0.1f-1ubuntu1
* Merge with Debian, remaining changes.
  - debian/libssl1.0.0.postinst:
    + Display a system restart required notification on libssl1.0.0
      upgrade on servers.
    + Use a different priority for libssl1.0.0/restart-services depending
      on whether a desktop, or server dist-upgrade is being performed.
  - debian/{libssl1.0.0-udeb.dirs, control, rules}: Create
    libssl1.0.0-udeb, for the benefit of wget-udeb (no wget-udeb package
    in Debian).
  - debian/{libcrypto1.0.0-udeb.dirs, libssl1.0.0.dirs, libssl1.0.0.files,
    rules}: Move runtime libraries to /lib, for the benefit of
    wpasupplicant.
  - debian/patches/perlpath-quilt.patch: Don't change perl #! paths under
    .pc.
  - debian/rules:
    + Don't run 'make test' when cross-building.
    + Use host compiler when cross-building.  Patch from Neil Williams.
    + Don't build for processors no longer supported: i586 (on i386)
    + Fix Makefile to properly clean up libs/ dirs in clean target.
    + Replace duplicate files in the doc directory with symlinks.
  - debian/control: Mark Debian Vcs-* as XS-Debian-Vcs-*
  - debian/patches/ubuntu_deb676533_arm_asm.patch: Enable arm assembly
    code.
  - debian/rules: Enable optimized 64bit elliptic curve code contributed
    by Google.
* Dropped changes:
  - debian/patches/arm64-support: included in debian-targets.patch
  - debian/patches/no_default_rdrand.patch: upstream
  - debian/patches/openssl-1.0.1e-env-zlib.patch: zlib is now completely
    disabled in debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        .set    reorder
141
141
        li      $minus4,-4
142
142
        and     $ta0,$a2,$minus4
143
 
        $LD     $t0,0($a1)
144
143
        beqz    $ta0,.L_bn_mul_add_words_tail
145
144
 
146
145
.L_bn_mul_add_words_loop:
 
146
        $LD     $t0,0($a1)
147
147
        $MULTU  $t0,$a3
148
148
        $LD     $t1,0($a0)
149
149
        $LD     $t2,$BNSZ($a1)
200
200
        $ADDU   $v0,$ta2
201
201
        sltu    $at,$ta3,$at
202
202
        $ST     $ta3,-$BNSZ($a0)
 
203
        .set    noreorder
 
204
        bgtz    $ta0,.L_bn_mul_add_words_loop
203
205
        $ADDU   $v0,$at
204
 
        .set    noreorder
205
 
        bgtzl   $ta0,.L_bn_mul_add_words_loop
206
 
        $LD     $t0,0($a1)
207
206
 
208
207
        beqz    $a2,.L_bn_mul_add_words_return
209
208
        nop
300
299
        .set    reorder
301
300
        li      $minus4,-4
302
301
        and     $ta0,$a2,$minus4
303
 
        $LD     $t0,0($a1)
304
302
        beqz    $ta0,.L_bn_mul_words_tail
305
303
 
306
304
.L_bn_mul_words_loop:
 
305
        $LD     $t0,0($a1)
307
306
        $MULTU  $t0,$a3
308
307
        $LD     $t2,$BNSZ($a1)
309
308
        $LD     $ta0,2*$BNSZ($a1)
341
340
        $ADDU   $v0,$at
342
341
        sltu    $ta3,$v0,$at
343
342
        $ST     $v0,-$BNSZ($a0)
 
343
        .set    noreorder
 
344
        bgtz    $ta0,.L_bn_mul_words_loop
344
345
        $ADDU   $v0,$ta3,$ta2
345
 
        .set    noreorder
346
 
        bgtzl   $ta0,.L_bn_mul_words_loop
347
 
        $LD     $t0,0($a1)
348
346
 
349
347
        beqz    $a2,.L_bn_mul_words_return
350
348
        nop
429
427
        .set    reorder
430
428
        li      $minus4,-4
431
429
        and     $ta0,$a2,$minus4
432
 
        $LD     $t0,0($a1)
433
430
        beqz    $ta0,.L_bn_sqr_words_tail
434
431
 
435
432
.L_bn_sqr_words_loop:
 
433
        $LD     $t0,0($a1)
436
434
        $MULTU  $t0,$t0
437
435
        $LD     $t2,$BNSZ($a1)
438
436
        $LD     $ta0,2*$BNSZ($a1)
463
461
        mflo    $ta3
464
462
        mfhi    $ta2
465
463
        $ST     $ta3,-2*$BNSZ($a0)
 
464
 
 
465
        .set    noreorder
 
466
        bgtz    $ta0,.L_bn_sqr_words_loop
466
467
        $ST     $ta2,-$BNSZ($a0)
467
468
 
468
 
        .set    noreorder
469
 
        bgtzl   $ta0,.L_bn_sqr_words_loop
470
 
        $LD     $t0,0($a1)
471
 
 
472
469
        beqz    $a2,.L_bn_sqr_words_return
473
470
        nop
474
471
 
547
544
        .set    reorder
548
545
        li      $minus4,-4
549
546
        and     $at,$a3,$minus4
550
 
        $LD     $t0,0($a1)
551
547
        beqz    $at,.L_bn_add_words_tail
552
548
 
553
549
.L_bn_add_words_loop:
 
550
        $LD     $t0,0($a1)
554
551
        $LD     $ta0,0($a2)
555
552
        subu    $a3,4
556
553
        $LD     $t1,$BNSZ($a1)
589
586
        $ADDU   $t3,$ta3,$v0
590
587
        sltu    $v0,$t3,$ta3
591
588
        $ST     $t3,-$BNSZ($a0)
592
 
        $ADDU   $v0,$t9
593
589
        
594
590
        .set    noreorder
595
 
        bgtzl   $at,.L_bn_add_words_loop
596
 
        $LD     $t0,0($a1)
 
591
        bgtz    $at,.L_bn_add_words_loop
 
592
        $ADDU   $v0,$t9
597
593
 
598
594
        beqz    $a3,.L_bn_add_words_return
599
595
        nop
679
675
        .set    reorder
680
676
        li      $minus4,-4
681
677
        and     $at,$a3,$minus4
682
 
        $LD     $t0,0($a1)
683
678
        beqz    $at,.L_bn_sub_words_tail
684
679
 
685
680
.L_bn_sub_words_loop:
 
681
        $LD     $t0,0($a1)
686
682
        $LD     $ta0,0($a2)
687
683
        subu    $a3,4
688
684
        $LD     $t1,$BNSZ($a1)
722
718
        $SUBU   $t3,$ta3,$v0
723
719
        sgtu    $v0,$t3,$ta3
724
720
        $ST     $t3,-$BNSZ($a0)
 
721
 
 
722
        .set    noreorder
 
723
        bgtz    $at,.L_bn_sub_words_loop
725
724
        $ADDU   $v0,$t9
726
725
 
727
 
        .set    noreorder
728
 
        bgtzl   $at,.L_bn_sub_words_loop
729
 
        $LD     $t0,0($a1)
730
 
 
731
726
        beqz    $a3,.L_bn_sub_words_return
732
727
        nop
733
728
 
840
835
        sltu    $ta0,$a1,$a2
841
836
        or      $t8,$ta0
842
837
        .set    noreorder
843
 
        beqzl   $at,.L_bn_div_3_words_inner_loop
 
838
        beqz    $at,.L_bn_div_3_words_inner_loop
844
839
        $SUBU   $v0,1
 
840
        $ADDU   $v0,1
845
841
        .set    reorder
846
842
.L_bn_div_3_words_inner_loop_done:
847
843
        .set    noreorder
902
898
        and     $t2,$a0
903
899
        $SRL    $at,$a1,$t1
904
900
        .set    noreorder
905
 
        bnezl   $t2,.+8
 
901
        beqz    $t2,.+12
 
902
        nop
906
903
        break   6               # signal overflow
907
904
        .set    reorder
908
905
        $SLL    $a0,$t9
917
914
        $SRL    $DH,$a2,4*$BNSZ # bits
918
915
        sgeu    $at,$a0,$a2
919
916
        .set    noreorder
920
 
        bnezl   $at,.+8
 
917
        beqz    $at,.+12
 
918
        nop
921
919
        $SUBU   $a0,$a2
922
920
        .set    reorder
923
921