Selaa lähdekoodia

clamp to correct value

ipatix 7 vuotta sitten
vanhempi
commit
75f6c27dbd
1 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa
  1. 8
    8
      src/music/main_mixer.s

+ 8
- 8
src/music/main_mixer.s Näytä tiedosto

@@ -889,21 +889,21 @@ C_downsampler_loop:
889 889
 
890 890
         MOV     R12, R0             @ left sample #1
891 891
         CMP     R12, #0x40000000
892
-        MOVGE   R12, #0x3F800000
892
+        MOVGE   R12, #0x3FC00000
893 893
         CMP     R12, #-0x40000000
894 894
         MOVLT   R12, #-0x40000000
895 895
         AND     R6, R11, R12, LSL#1
896 896
 
897 897
         MOV     R0, R0, LSL#16      @ right
898 898
         CMP     R0, #0x40000000
899
-        MOVGE   R0, #0x3F800000
899
+        MOVGE   R0, #0x3FC00000
900 900
         CMP     R0, #-0x40000000
901 901
         MOVLT   R0, #-0x40000000
902 902
         AND     R7, R11, R0, LSL#1
903 903
 
904 904
         MOV     R12, R1             @ left sample #2
905 905
         CMP     R12, #0x40000000
906
-        MOVGE   R12, #0x3F800000
906
+        MOVGE   R12, #0x3FC00000
907 907
         CMP     R12, #-0x40000000
908 908
         MOVLT   R12, #-0x40000000
909 909
         AND     R12, R11, R12, LSL#1
@@ -911,7 +911,7 @@ C_downsampler_loop:
911 911
 
912 912
         MOV     R1, R1, LSL#16      @ right
913 913
         CMP     R1, #0x40000000
914
-        MOVGE   R1, #0x3F800000
914
+        MOVGE   R1, #0x3FC00000
915 915
         CMP     R1, #-0x40000000
916 916
         MOVLT   R1, #-0x40000000
917 917
         AND     R1, R11, R1, LSL#1
@@ -919,7 +919,7 @@ C_downsampler_loop:
919 919
 
920 920
         MOV     R12, R2             @ left sample #3
921 921
         CMP     R12, #0x40000000
922
-        MOVGE   R12, #0x3F800000
922
+        MOVGE   R12, #0x3FC00000
923 923
         CMP     R12, #-0x40000000
924 924
         MOVLT   R12, #-0x40000000
925 925
         AND     R12, R11, R12, LSL#1
@@ -927,7 +927,7 @@ C_downsampler_loop:
927 927
 
928 928
         MOV     R2, R2, LSL#16      @ right
929 929
         CMP     R2, #0x40000000
930
-        MOVGE   R2, #0x3F800000
930
+        MOVGE   R2, #0x3FC00000
931 931
         CMP     R2, #-0x40000000
932 932
         MOVLT   R2, #-0x40000000
933 933
         AND     R2, R11, R2, LSL#1
@@ -935,7 +935,7 @@ C_downsampler_loop:
935 935
 
936 936
         MOV     R12, R3             @ left sample #4
937 937
         CMP     R12, #0x40000000
938
-        MOVGE   R12, #0x3F800000
938
+        MOVGE   R12, #0x3FC00000
939 939
         CMP     R12, #-0x40000000
940 940
         MOVLT   R12, #-0x40000000
941 941
         AND     R12, R11, R12, LSL#1
@@ -943,7 +943,7 @@ C_downsampler_loop:
943 943
 
944 944
         MOV     R3, R3, LSL#16      @ right
945 945
         CMP     R3, #0x40000000
946
-        MOVGE   R3, #0x3F800000
946
+        MOVGE   R3, #0x3FC00000
947 947
         CMP     R3, #-0x40000000
948 948
         MOVLT   R3, #-0x40000000
949 949
         AND     R3, R11, R3, LSL#1